• Resolved gasbas74

    (@gasbas74)


    Hi,

    I wouldn’t mind some documentation on how to implement.
    I saw some old topics and you answering to remove the double quotes to replace them with short codes. But which short codes exactly? Copying the short code as-is, doesn’t display any of my defined cross sell products.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author logicfire

    (@logicfire)

    Hi,
    When you copy shortcode directly the quotes it has quotes like tihs.
    [wcsp_cross_sell orderby=”rand” order=”ASC” product_num=”5″ display_columns=”3″ title=”Some title..” product_id=”Product ID” class=”class-1 class-2 class-3″]

    but you need to remove these quotes (“”) around the parameters and retype the quotes.

    • This reply was modified 4 years, 5 months ago by logicfire.
    Thread Starter gasbas74

    (@gasbas74)

    Which I did. ALso enabled “cross sell products on single product page” AND defined 3 products in my linked products tab within the product specs page in WooCommerce.
    I really don’t know what I’m doing wrong here…
    Your code resides in a static block which I link in a widget on the single product page. Could something go wrong with nesting the code like this?

    Thread Starter gasbas74

    (@gasbas74)

    Are you willing to have a look yourself? Solving this would really help me out. It’s the last hurdle so to speak.

    Plugin Author logicfire

    (@logicfire)

    Sure I’d love to help. Please share the website url where you are using the plugin.
    Also I may need to check the backend on how you setup the plugin. May be you are missing something.

    Thread Starter gasbas74

    (@gasbas74)

    How do I send my website credentials over to you, privately? (I don’t see a direct message option)

    Plugin Author logicfire

    (@logicfire)

    use this contact form.
    https://logicfire.in/contact/

    Thread Starter gasbas74

    (@gasbas74)

    Thanks! I’ve just sent you an email with the credentials

    Thread Starter gasbas74

    (@gasbas74)

    Btw, the code resides in Custom HTML 2 which can be found by clicking the element in the editor at the bottom of the single product page builder

    Plugin Author logicfire

    (@logicfire)

    Hi Bas
    there was problem with the shortcode.
    [wcsp_cross_sell orderby=”rand” order=”ASC” product_num=”5″ display_columns=”3″ title=”Hello title..” product_id=”Product ID”]?

    Normally on default single product page the crosssells automatically?hooked if you have enabled it in the plugin settings.
    Though when you using the shortcode to display it on the specific location or on different page. You need a real Product ID? here (product_id=”xxxx”) in the shortcode attribute.
    Also if you are using the shortcode on the single product page itself then you can just leave it blank. It’ll take the default Product ID.

    Thread Starter gasbas74

    (@gasbas74)

    Thanks.
    The shortcode is used on the single product page only. It just resides in an HTML block to have the theme serve it out on the product page.
    I’ve noticed you took out the Product ID, but the linked products are still not popping up. Did you get the desired result?

    Plugin Author logicfire

    (@logicfire)

    Yes, I get the desired result. Edit any product and add new crosssell and see the results on the frontend.
    Though there is an issue I can see that the currently crossells added in products are not working. May be there’s an issue with multilingual products. ID’s are not matching.

    Thread Starter gasbas74

    (@gasbas74)

    Sorry, but could you make a screenshot?
    I’m really struggling to get the same results.
    Multilingual products shouldn’t be an issue, since I’ve not yet added any language variations.
    Looking at products that have linked products in the cross-sell section still don’t display cross-sells on the single product page. I’m starting to feel like a dumbass!…

    Plugin Author logicfire

    (@logicfire)

    Yes, that is another issue. Those are not working. You are right. Not sue but that issue might be because of wpml plugin you are using.
    You have to re-assign the crosssells to products.

    Please check your email I have sent with screenshots and link to product that is working.

    Thread Starter gasbas74

    (@gasbas74)

    Hi,

    I wanted to respond in this forum instead of private mail, to say thanks!
    It does work now! I found that the underlying problem isn’t the WPML plugin but instead the variation product version. Even using the first variation is a no-go; you actually need the master product.

    Styling will be the next challenge, as it uses classes widely used throughout the theme/WooCommerce. It would help if the output images/product would hook a unique class.
    But we’ll figure it out.

    Thanks again.

    Thread Starter gasbas74

    (@gasbas74)

    Apologies, I just noticed the options to hook 3 different classes ??

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘DIfficulty with correct code’ is closed to new replies.