It's time to create new or re-design your websites to bring it to the next level.

Collection of 200+ Free Joomla templates, support Joomla 3.9.x and Joomla 4 Listing of 300+ Best Free WordPress themes, WooCommerce compatible, Elementor supports!

These shortcodes will be used for Joomla Article layouts, since Joomla layouts cannot be managed by J2store. Joomla has developed and maintained these shortcodes.

While Product pages/product list layout are supposed to display product and being maintained by J2store, they already has had PHP code in the view files for displaying elements and products.

But, Core Joomla layouts and article layouts don’t. Therefore, we need the shortcode for Joomla layouts. These shortcodes will not work in product layouts of J2store.

Notice: If you add more shortcodes to J2store pages (processed in the products), it will result in force the processing/invoking J2store and performance issues.

Additional shortcodes

Beside the primary shortcode, you are also possible to use these additional codes inside {j2store}{/j2store}, every code should be divided by a | symbol

To place this shortcode, please remember to change Add to placement mode by going to J2store > Configuration > Cart tab > set Add to cart placement as Both or Within article using tag, then Save the changes.

For example:

{j2store}xx|upsells|crosssells{/j2store}

It will work in all place modes of Add to cart. Notice to use these codes carefully for improving performance.

Available shortcodes list and their description

cart – full cart with options, price and button add to cart {j2store}XX|cart{/j2store}

Price – Show both often price and selling price{j2store}XX|price{/j2store}

Saleprice – Only for the selling price{j2store}XX|saleprice{/j2store}

Regularprice  – Show only the regular price{j2store}XX|regularprice{/j2store}

Thumbnail – Show added thumbnail through the j2store cart -> images tab{j2store}XX|thumbnail{/j2store}

Mainimage – Show added main image through j2store cart -> images tab{j2store}XX|mainimage{/j2store}

Mainadditional –  Show both additional and main images added through j2store cart -> images tab{j2store}XX|mainadditional{/j2store}

 

Upsells – Display product up-selling {j2store}XX|upsells{/j2store}

Crosssells – Display product cross selling {j2store}XX|crosssells{/j2store}

Example

{j2store}1|thumbnail|cart{/j2store}

That’s it! If you have any question, please feel free to let us know by leaving a comment below, we will reply as soon as possible!

Image Credit: J2store

Are you Web Freelancer or Web Design Company? Join our Club and Access our Resource!

500+ Premium Joomla! and WordPress themes just $8.70/Month, Quickstart (dummy) package included, unlimited domains!

40off

BLACK FRIDAY 50% OFF!

Access Life-time All-In-One Membership with all 500+ Premium WordPress themes and Joomla templates and new theme(s) every month just $199.50 (instead of $399). Life-time PRO theme access, download and support, no renewal in the future.

About Developer package of All-In-One Membership

The Pandemic Continues So Do Our Support! We're offering 40% Discount on all purchases! Code: WORKATHOME More Details
Black Friday Sale! Get extra 50% OFF for all purchases. Coupon code: LTBFCM50 More Details