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}

shortcode cart

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

shortcode price

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

shortcode sale price

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

shortcode regular price

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

shortcode thumb

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}

 shortcode mainadditional

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

shortcode upsells

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

shortcode crosssells

Example

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

shortcode cart thumb

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

Rate for post
All-In-One Membership Access PRO version of all 500+ all Joomla! templates and WordPress themes. Just from $7.25/MO Learn more
🎉 Merry xMas & Happy New Year sale! Grab 50% Off for everything on today, don't miss it. Coupon code: XMASNEWYEAR Redeem Now