Im trying to add Stock Level and SKU variables to the Single Product Page

I remember years ago this theme had shortcodes already added for these 2 items. Now they're just admin counters Are they still in some core library that i can print "somewhere"? Also - which page file do i need to hack:)? mny tnx

Created: January 26, 2020 at 2:33 am
  • In: WordPress Design
  • Started by: admin
  • 3 members left 4 comments
  • Last reply from: Mark FailMark Fail

  • JamesD
    January 26, 2020 at 7:16 am

    Shortcodes still exist for them.

    They’re custom fields, so try using the CUSTOMFIELD shortcode like:
    Product SKU: [CUSTOMFIELD field="SKU"]
    Product Quantity: [CUSTOMFIELD field="qty"].

    All of the custom fields related to the product are listed on the page, so you can find all the field names there.

    Note: The SKU setting in the top right (under Product ID) is NOT automatically populated, so if you make a change on the page it will be empty, unless you enter it each time. (theme bug)

  • admin
    January 27, 2020 at 2:10 am

    big help many tnx – though this seems to be restricted to the Description block:)

    The thing is that I’m looking to insert these near the Buy Button.

    I did this a few years ago – I just can’t remember which page template to edit or where to locate it:)

    The site structure is now built with bootstrap.

    the old version i don’t think was the case?

  • admin
    January 27, 2020 at 3:42 am

    actually – not to worry – my client is happy with the Description Area placement – many thanks!

  • Mark Fail
    Mark Fail
    January 27, 2020 at 6:10 am

    thanks for the update.

Viewing 5 posts - 1 through 5 (of 5 total)