Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

Jolly-Martian
Advanced Member

United Kingdom
218 Posts

Pre-sales questions only
(More Details...)

Posted - 12/16/2020 :  12:53:24  
Hi there,

I am using the "search term" function to add the word XMAS20 to all products I am offering a discount on this xmas to then send the customer to a page that displays all products with XMAS20 in the search term field, but the /search.php layout isnt the same as the /products.php layout, how can i change this to mirror how the products.php layout looks?

Jason

Edited by - Jolly-Martian on 12/16/2020 12:59:46

Vince
Administrator

42706 Posts

Posted - 12/16/2020 :  23:45:21  
Hi Jason
The search page uses the same code as the product page to set the layout. But maybe there are parameters inline in the search.php page itself to change the layout. Could you check in the search.php page source to see if there is anything just before the incsearch.php include line?

Also, would it maybe be better then to give all these products a new attribute, "XMAS20" and then link to the products page with the attribute id, for instance...
products.php?scri=9
(You can find the attribute ID by clicking on Modify Attribute in the Admin Product Attributes page and it is in the ID column)

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Phil
ECT Moderator

United Kingdom
7670 Posts

Posted - 12/17/2020 :  01:51:21  
Hi Jason,
You have different stylesheets assigned to the product and search pages
For the search page you have
<link href="css/ectstyle1.css" rel="stylesheet" type="text/css" />

and for the product page you have

<link href="css/ectstyle3.css" rel="stylesheet" type="text/css" />



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Jolly-Martian
Advanced Member

United Kingdom
218 Posts

Pre-sales questions only
(More Details...)

Posted - 12/21/2020 :  22:51:14  
Hi Phil,

Thanks for this, will it cause any issues if i change the style sheet for the search page to "css/ectstyle3.css"?

How do i do this?

Thanks

Jason

Vince
Administrator

42706 Posts

Posted - 12/22/2020 :  04:53:50  
Hi Jason
Just open the search.php page in notepad, search for "ectstyle1.css" and change that to "ectstyle3.css"

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Jolly-Martian
Advanced Member

United Kingdom
218 Posts

Pre-sales questions only
(More Details...)

Posted - 12/22/2020 :  07:49:35  
Excellent, I thought it might be.

Thanks again.

Jason
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000