Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2003
    Posts
    293
    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?m...&products_id=9

    Second Link to Product 2
    http://localhost/zencart/index.php?m...roducts_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 ?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Multiple Pages for Single Product

    Your links to your localhost are not web accessible....
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2003
    Posts
    293
    Plugin Contributions
    0

    Re: Multiple Pages for Single Product

    Quote Originally Posted by 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.

  4. #4
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default 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 )
    Zen cart PCI compliant Hosting

  5. #5
    Join Date
    Dec 2003
    Posts
    293
    Plugin Contributions
    0

    Default Re: Multiple Pages for Single Product

    Quote Originally Posted by 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.

  6. #6
    Join Date
    Dec 2003
    Posts
    293
    Plugin Contributions
    0

    Default Re: Multiple Pages for Single Product

    Has anyone figured it out ?

  7. #7
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default 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)
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  8. #8
    Join Date
    Dec 2003
    Posts
    293
    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 ?

  9. #9
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default 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 Code:
    $tpl_page_body '/tpl_product_info_display.php'
    modify it to be
    PHP Code:
    $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.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  10. #10
    Join Date
    Dec 2003
    Posts
    293
    Plugin Contributions
    0

    Default Re: Multiple Pages for Single Product

    Quote Originally Posted by 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 Code:
    $tpl_page_body '/tpl_product_info_display.php'
    modify it to be
    PHP Code:
    $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 : )

 

 

Similar Threads

  1. v151 Multiple Picture Optons for a Single Product
    By TheGuild in forum General Questions
    Replies: 1
    Last Post: 24 Sep 2012, 02:34 AM
  2. Need a addons for multiple images and color for single product.
    By neal99 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Oct 2010, 05:49 PM
  3. multiple info pages for a single product
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Oct 2008, 11:58 PM
  4. multiple price options for single product
    By Shannon Martina in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Aug 2008, 04:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg