Zen Cart Logo
Forums / General Questions / Multiple Pages for Single Product

Multiple Pages for Single Product

Locked

Views: 2,387

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
25 Jun 2006, 8:19 PM
#1
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Multiple Pages for Single Product

Hi

I want to know if there is way to get two links to the same product.

for e.g.

First Link to Product 1
http://localhost/zencart/index.php?main_page=product_info&products_id=9

Second Link to Product 2
http://localhost/zencart/index.php?main_page=product_info&products_id=9_1

The product should be the same but the link should differ so that different tests could be run.

Is this possible with Zencart ?

26 Jun 2006, 7:06 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Multiple Pages for Single Product

Your links to your localhost are not web accessible....

26 Jun 2006, 10:32 AM
#3
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Multiple Pages for Single Product

kobra:

Your links to your localhost are not web accessible....

They are not supposed to be web accessible since i used them for an example.

26 Jun 2006, 10:34 AM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Multiple Pages for Single Product

if you create one product then link it to a seperate category that should give you seperate links ( I would think )

26 Jun 2006, 10:43 AM
#5
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Multiple Pages for Single Product

Merlinpa1969:

if you create one product then link it to a seperate category that should give you seperate links ( I would think )

Hi merlinpa,

Thanks for replying : )

What i am trying to acomplish is to have the two different links pointing to the same Product.

Now I dont want to add the same product twice. The product has to be one whereby two links directed to it.

This is in order to test two different landing pages for a single product or any other page in the shopping cart, in order to see which one performs better.

27 Jun 2006, 9:17 AM
#6
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Multiple Pages for Single Product

Has anyone figured it out ?

27 Jun 2006, 8:50 PM
#7
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Multiple Pages for Single Product

are these links intended to be on pages outside the cart? If so, you could just add a new get parameter to the url, like ...index.php?main_page=product_info&products_id=319&source=1, and on the other link you could have ...index.php?main_page=product_info&products_id=319&source=2.
The cart will just ignore that extra get parameter, but you could see it in the access logs.

You could build some custom code to track the source parameter within the cart (it could go in includes/modules/pages/product_info/header_php.php)

28 Jun 2006, 1:03 AM
#8
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Multiple Pages for Single Product

Hi bunip

Here is the scenario i want to achieve.

I have two Google Ads running with different Headlines, Ad text in second and third line of the ad etc.

So when a visitor sees my Ad on Google, and clicks on the Ad, he should be directed to one of the two pages built for the same product.
There has to be only one product but having 2 different pages.

For e.g.

the Landing pages would be

1st Landing Page for Product A
http: //www.domain.com/index.php?main_page=product_info&products_id=9_1

2nd Landing Page for Product A
http: //www.domain.com/index.php?main_page=product_info&products_id=9_2

The landing pages for Product A would have different changes in them. They wont be identical. So in 9_1, I would change the Product Headling, its color and font etc. and in 9_2, it would be different. this way I can change different variables such as Price, Model , Weight, Offer etc.

So if I get 100 visitors from the website, i would divide the visitors by 50 to 9_1 and 50 to 9_2 and see which Ad converted the best into sales. When the visitors click on Add to Cart, he should be directed to the Shopping Cart.

The pages does not have to inside or outside as it does not matter, as long as they connect to the Shopping Cart.

This way I can test my Create Account page to see which version works the best etc.

Is this possible with Zencart ?

28 Jun 2006, 5:47 AM
#9
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Multiple Pages for Single Product

I'd still do it with the extra get parameter.
Let's say the url for the first landing page is
http: //www.domain.com/index.php?main_page=product_info&products_id=9
and the url for the second landing page is
http: //www.domain.com/index.php?main_page=product_info&products_id=9&lp=b

Duplicate includes/templates/your_template/template/tpl_product_info_display.php
save it as includes/templates/your_template/templates/tpl_product_info_display_b.php

modify it to display your product differently from the standard.

Now, edit includes/modules/pages/product_info/main_template_vars.php
Find this line of code:```php
$tpl_page_body = '/tpl_product_info_display.php';

modify it to be ```php
$tpl_page_body = (isset($_GET['lp']) && ($_GET['lp'] == 'b') ? '/tpl_product_info_display_b.php' : '/tpl_product_info_display.php');

that way the new template file will be used if and only if the &lp=b parameter is in the url. Same product from the database, just displayed differently.

22 Aug 2006, 3:31 PM
#10
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Multiple Pages for Single Product

bunyip:

I'd still do it with the extra get parameter.
Let's say the url for the first landing page is
http: //www.domain.com/index.php?main_page=product_info&products_id=9
and the url for the second landing page is
http: //www.domain.com/index.php?main_page=product_info&products_id=9&lp=b

Duplicate includes/templates/your_template/template/tpl_product_info_display.php
save it as includes/templates/your_template/templates/tpl_product_info_display_b.php

modify it to display your product differently from the standard.

Now, edit includes/modules/pages/product_info/main_template_vars.php
Find this line of code:```php
$tpl_page_body = '/tpl_product_info_display.php';

> modify it to be ```php
$tpl_page_body = (isset($_GET['lp']) && ($_GET['lp'] == 'b') ? '/tpl_product_info_display_b.php' : '/tpl_product_info_display.php');

that way the new template file will be used if and only if the &lp=b parameter is in the url. Same product from the database, just displayed differently.

Thanks alot : )