• Resolved lamefe

    (@lamefe)


    Neither the shortcode on a single page nor the button on the single product page does show up while using a variable product. Changing to simple product works. Prices are set for all variations. Configurable is checked on each variation, too.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi there,

    When working with variable products, shortcodes only work with single variations – the product that can actually be added to the cart. So if you were to use the shortcode on a page, you would need to use a variation ID in the shortcode, not the variable product ID. This is because the configurator relies on a variation being selected prior to opening.

    The same goes on the product page. What some users do is have a custom variation selection, which includes the attributes in the URL. As a result the current variation is determined in PHP, and the shortcode is added dynamically in PHP as well.

    Marc

    Thread Starter lamefe

    (@lamefe)

    Hi Marc,
    great for coming back so quickly.
    Now I understand this – makes absolute sense.
    Thanks for solving.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.