| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hide Left & Right Columns On Specific Page Product.php | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Hide Left & Right Columns On Specific Page Product.php
My Version: X-Cart version 4.1.10
1. I want to remove or hide the left and right vert menus on pages that display the specific product. Example url: http://www.mysite.com/product.php?productid=32&cat=195&page=1 2. I would also liketo remove them on static & help pages like: http://www.mysite.com/help.php http://www.mysite.com/help.php?section=about I am fine with it everywhere else, so how do you remove them? Where do I edit? What code do I insert or comment out? I am not an expert coder so if possible please be specific like "edit file XXXX and add / or remove this code XXXXX. Thanks Thanks
__________________
X-Cart version 4.1.10 PHP 5.2.9 GD bundled (2.0.34 compatible) MySQL server 5.0.67-community MySQL client 5.0.67 Operation system Linux Mods: Easy Variant View Mod Shadowbox Image Mod 7dana "elegent" template |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Hide Left & Right Columns On Specific Page Product.php
Hi there,
The files you'll need to edit are skin1/customer/home.tpl and skin/customer/home_main.tpl (this is for X-Cart 4, which I'm presuming you're using, you'll need to update your signature so that forum members can help you better). home.tpl is like a 'master' template for laying out each page, with HTML interspersed with Smarty logic, while home_main.tpl basically sets out what should be displayed on home.tpl depending on which section the customer has gone to. To remove the left and right columns for specific pages, the exact code changes are different for X-Cart 4.1 and X-Cart 4.2. Would it be possible to tell me which version you're using?
__________________
John ElegantXMods.com QuickOrder AJAX-based search and ordering system now available giving you complete control over how customers browse and search for your products. Click here for details. PriceSlider - easily filter categories by price range - only $9.99 - details here X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Hide Left & Right Columns On Specific Page Product.php
Ok I added my version it was also at the top of the post.
Now I do not want to remove it from all pages just the page that displays the specific product as in the example on my first post and also remove it from the help pages. Any ideas anyone?
__________________
X-Cart version 4.1.10 PHP 5.2.9 GD bundled (2.0.34 compatible) MySQL server 5.0.67-community MySQL client 5.0.67 Operation system Linux Mods: Easy Variant View Mod Shadowbox Image Mod 7dana "elegent" template |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Hide Left & Right Columns On Specific Page Product.php
Open skin1/customer/home.tpl and find the line
Code:
ABOVE this line, insert this code Code:
and replace 111 with your chosen product ID (or you could use the SKU / product code instead: use $product["productcode"] ). now scroll down and find Code:
and ABOVE this insert this line: Code:
__________________
John ElegantXMods.com QuickOrder AJAX-based search and ordering system now available giving you complete control over how customers browse and search for your products. Click here for details. PriceSlider - easily filter categories by price range - only $9.99 - details here X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache. |
|||||||||
#5
|
|||||||
|
|||||||
Re: Hide Left & Right Columns On Specific Page Product.php
Thank you very much for your reply, now I think you understand what i want to do except i may have miss typed what i meant.
1. I basically do not want the left or right columns shows on any pages that display products, not just one specific product. 2. Also I do not want it to show on help pages or custom pages i create. Thanks
__________________
X-Cart version 4.1.10 PHP 5.2.9 GD bundled (2.0.34 compatible) MySQL server 5.0.67-community MySQL client 5.0.67 Operation system Linux Mods: Easy Variant View Mod Shadowbox Image Mod 7dana "elegent" template |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Hide Left & Right Columns On Specific Page Product.php
Hi there,
In that case, just change the code from my previous post: Code:
to: Code:
__________________
John ElegantXMods.com QuickOrder AJAX-based search and ordering system now available giving you complete control over how customers browse and search for your products. Click here for details. PriceSlider - easily filter categories by price range - only $9.99 - details here X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache. |
|||||||||
#7
|
|||||||
|
|||||||
Re: Hide Left & Right Columns On Specific Page Product.php
That code setup did not workI get errors.
If this helps I have a 7dana template, and an image mod and below I have posted my home.tpl code: Code:
__________________
X-Cart version 4.1.10 PHP 5.2.9 GD bundled (2.0.34 compatible) MySQL server 5.0.67-community MySQL client 5.0.67 Operation system Linux Mods: Easy Variant View Mod Shadowbox Image Mod 7dana "elegent" template |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Hide Left & Right Columns On Specific Page Product.php
Where you have the line:
Code:
replace it with Code:
then below that find the line Code:
and replace it with Code:
__________________
John ElegantXMods.com QuickOrder AJAX-based search and ordering system now available giving you complete control over how customers browse and search for your products. Click here for details. PriceSlider - easily filter categories by price range - only $9.99 - details here X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|