Prestashop

Cut string in php



<?php

// Example 1

$pizza  "piece1 piece2 piece3 piece4 piece5 piece6";

$pieces explode(" "$pizza);

echo 
$pieces[0]; // piece1

echo $pieces[1]; // piece2

?>


Kyle.

Categories: Prestashop | Leave a comment

No right click on image.

Add this code to head tag:
var message=””;function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;document.onselectstart=clickIE}document.oncontextmenu=new Function(“return false”)

Kyle.

Categories: Prestashop | Leave a comment

Related products, Up-sells, Cross-sells in Magento

There are three types of product relations in Magento: Up-sells, Related Products, and Cross-sell Products. When viewing a product, Upsells for this product are items that your customers would ideally buy instead of the product they’re viewing. They might be better quality, produce a higher profit margin, be more popular, etc. These appear on the product info page. Related products appear in the product info page as well, in the right column. Related products are meant to be purchased in addition to the item the customer is viewing. Finally, Cross-sell items appear in the shopping cart. When a customer navigates to the shopping cart (this can happen automatically after adding a product, or not), the cross-sells block displays a selection of items marked as cross-sells to the items already in the cart. They’re a bit like impulse buys – like magazines and candy at the cash registers in grocery stores.

Upsells
This is the example of the Up-sell. Ideally, the visitor is supposed to analyze those products as they should be relevant to the one that is just loaded.

From inchoo.net


Kyle.

Categories: Prestashop | Leave a comment

How to display product’s reference in category page PRESTASHOP

Add this code to place where you want show it:

{$product.reference}

Note:
Remember: add reference for product in admin.

Kyle.

Categories: Prestashop | Leave a comment

Hello world!

Welcome to WordPress.com! This is your very first post. Click the Edit link to modify or delete it, or start a new post. If you like, use this post to tell readers why you started this blog and what you plan to do with it.

Happy blogging!

Categories: Prestashop | 1 Comment

Create a free website or blog at WordPress.com.