View Single Post
  #8  
Old 07-27-2016, 11:11 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Can I add an image at the top of the {sale} page ?

Implementing every custom modification as a module allows you to separate mods from the core and from each other.
If something goes wrong, you know what modules what change.
This is much easier to debug than multiple hacks mixed in core XC4 files, when you don't know why this code is there and what will happen if you remove it.

As for adding an image at the top of Sales page - you are to add the following template:
Code:
{* * @ListChild (list="center", weight="0") *} {if:getTarget()=#sale_products#} <p class="sale-page-custom-head"> <img src="URL_TO_YOUR_IMAGE_HERE" /> </p> {end:}

You can either create a new module, or do it from the CustomSkin module.

For a new module: follow the instructions and place the template to the skins/default/en/modules/YOUR_DEV_ID/YOUR_MODULE_ID/sale/ directory. Then enable the module.

For CustomSkin module: place the template to the skins/default/en/modules/XC/CustomSkin/sale/ directory and enable "Custom Skin" module in the backend.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions