• Resolved marcusmichael

    (@marcusmichael)


    Hi!
    Love the plugin!

    I’m using divi to create a site for a customer, and would love to be able to input the configurator to a custom product page – are there any shortcodes for adding the configure button?

    Best,
    Marcus M

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

    (@marcusig)

    Hi Marcus,

    Glad you like the plugin ??

    Yes I added a shortcode in the last release:

    [mkl_configurator_button product_id="1"]

    or

    [mkl_configurator_button product_id="1"]Button label[/mkl_configurator_button]

    At the moment it’s all that’s configurable (I’ll should probably add custom CSS classes as well).

    Best,
    Marc.

    Hi Marc,

    I’m trying to add this button shortcode you provided in the previous comment with Elementor to a template that is designed for configurable products.

    I’m getting a message that says it’s an invalid ID.
    https://drive.google.com/file/d/15VgxRsz7_MFEx5CeLD7GEEUVigmcpbAp/view?usp=sharing

    I was hoping to resolve the issue of seeing both the default WC add to cart button and your plugin’s button at the same time on the site.
    https://drive.google.com/file/d/1wlaql7lnN1vvc-SGIyPdrT-fZVLwHb06/view?usp=sharing

    As if I remove the default add to cart button the quantity disappears too and then I was about to add your shortcode that displays one button since the quantity and the add to cart is managed within the configurator anyway. No if I remove the default add to cart button the configure button disappears as well.

    I’m using version 1.1.1 as the newer version messes up exactly the same template style for some reason.

    Can you please advise?

    • This reply was modified 4 years, 4 months ago by kacor.
    • This reply was modified 4 years, 4 months ago by kacor.
    Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi @kacor
    When adding the shortcode you should replace the 1 in product_id="1" by the id of your product in WooCommerce. Because the shortcode is meant to be used on any other page, it doesn’t use the current page ID, if it’s the product itself.

    I’m using version 1.1.1 as the newer version messes up exactly the same template style for some reason.

    I’m not sure to understand, what’s the issue with the latest version? If it breaks something, I should probably fix it ??

    Marc.

    Plugin Contributor Marc Lacroix

    (@marcusig)

    Also note that the configurator hides the “add to cart” button and quantity on a default Woocommerce product using CSS. If it’s not working on your page, it’s should be easy to fix using CSS as well.

    Plugin Contributor Marc Lacroix

    (@marcusig)

    This CSS should help, whether or not you use the shortcode:

    .is_configurable .elementor-add-to-cart .quantity, 
    .is_configurable .elementor-add-to-cart .single_add_to_cart_button {
    	display: none !important;
    }

    Please do let me know the issue you had with the latest version.

    Thanks,
    Marc.

    Hi Marc,

    Sorry for the sporadic responses!
    Thanks very much for the CSS! It works!

    For the record maybe this helps others too.
    1. I’ve added it to the Theme Builder Elementor template that applies to my configurable products and within it to the Add to cart element. – <b>It didn’t work. </b>
    2. I’ve edited the product itself with Elementor and added the CSS to the Add to cart element. – <b>It worked. </b>

    UPDATE – rebuilt the template, now the css works from the template too. Must have been some Elementor issue…

    Re. the issue with the latest version I promise I will come back to you, Marc. Will open another ticket for that. It’s just at the moment my customers are in a contest and I don’t dare to play with the site, not mentioning the little time I have.

    Thanks again for your help! And thanks for your understanding!

    • This reply was modified 4 years, 4 months ago by kacor.
    • This reply was modified 4 years, 4 months ago by kacor.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcodes?’ is closed to new replies.