Title: DIfficulty with correct code
Last modified: June 14, 2020

---

# DIfficulty with correct code

 *  Resolved [gasbas74](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/)
 * 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)

1 [2](https://wordpress.org/support/topic/difficulty-with-correct-code/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/difficulty-with-correct-code/page/2/?output_format=md)

 *  Plugin Author [logicfire](https://wordpress.org/support/users/logicfire/)
 * (@logicfire)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-12984094)
 * 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 5 years, 11 months ago by [logicfire](https://wordpress.org/support/users/logicfire/).
 *  Thread Starter [gasbas74](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-12986053)
 * 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](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-12994865)
 * 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](https://wordpress.org/support/users/logicfire/)
 * (@logicfire)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-12996242)
 * 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](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13004043)
 * How do I send my website credentials over to you, privately? (I don’t see a direct
   message option)
 *  Plugin Author [logicfire](https://wordpress.org/support/users/logicfire/)
 * (@logicfire)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13005708)
 * use this contact form.
    [https://logicfire.in/contact/](https://logicfire.in/contact/)
 *  Thread Starter [gasbas74](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13006340)
 * Thanks! I’ve just sent you an email with the credentials
 *  Thread Starter [gasbas74](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13006362)
 * 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](https://wordpress.org/support/users/logicfire/)
 * (@logicfire)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13008710)
 * 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](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13009416)
 * 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](https://wordpress.org/support/users/logicfire/)
 * (@logicfire)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13009894)
 * 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](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13010306)
 * 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](https://wordpress.org/support/users/logicfire/)
 * (@logicfire)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13010354)
 * 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](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13010557)
 * 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](https://wordpress.org/support/users/gasbas74/)
 * (@gasbas74)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/#post-13010622)
 * Apologies, I just noticed the options to hook 3 different classes 😉

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/difficulty-with-correct-code/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/difficulty-with-correct-code/page/2/?output_format=md)

The topic ‘DIfficulty with correct code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-cross-sell-products-display.
   svg)
 * [Cross Sell Products Slider For Woocommerce](https://wordpress.org/plugins/woocommerce-cross-sell-products-display/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-cross-sell-products-display/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-cross-sell-products-display/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-cross-sell-products-display/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-cross-sell-products-display/reviews/)

 * 19 replies
 * 2 participants
 * Last reply from: [logicfire](https://wordpress.org/support/users/logicfire/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/difficulty-with-correct-code/page/2/#post-13014928)
 * Status: resolved