Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: shopping cart contents

    Ok I will try this - i am surprised this has not been an issue before -

  2. #2
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: shopping cart contents

    Ok what I am going for is:
    image, Manf, model number, name, skill type

    skill type I am trying to construct and is discussed in another thread.

    So am i assuming correctly that these fields are within the products table?

    image is products_images;
    products manf is manf_id
    model number is products_model
    name is products_id
    skill type well that is coming sometime.

    Or am I off base and they each tables themselves?

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: shopping cart contents

    In th products table you have:

    products_id
    manufacturers_id
    products_image
    products_model

    In the products_description table you have:

    products_name

    Skill type will be wherever you put it!

  4. #4
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: shopping cart contents

    Being a newbie I copied extactly what you suggested to see what it did! Very nice! but I wanted the model number etc.

    so I chose one catagory to change to see what happened and sure enough it did not like it .

    So this is what I did : This is to add the model number.

    inclludes modules/pages...

    line 132ish
    $linkProductsName = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']);

    $ProductsModel= zen_get_products_model($products[$i]['id']);

    line 145ish
    'linkProductsName'=>$linkProductsName,
    'productsModel'=>$productsModel,

    'productsImage'=>$productsImage,


    then in tpl_shopping_cart_default.php

    <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo
    $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] .
    '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'.'<br/>'.$product['productsModel']; ?></span></a>

    I get a white page so it is not liking something I have done or it just does not show the model number. TIA

  5. #5
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: shopping cart contents

    Ok
    I does not seem to like the coding for the products_model

    possibly because this is a feature within a table and the
    productsDescription is a table itself?

  6. #6
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: shopping cart contents

    If I am thinking correctly - the coding above is for a table within my database. It works great.

    How do I modify this for a feature within a table:

    such as

    products
    products_model?

    help please TIA

 

 

Similar Threads

  1. shopping cart contents text
    By hanafoo in forum General Questions
    Replies: 8
    Last Post: 4 May 2010, 12:39 PM
  2. Shopping Cart Contents
    By grgolf in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Dec 2008, 11:03 PM
  3. Shopping Cart Contents
    By metalarea in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Sep 2007, 09:53 PM
  4. shopping cart contents
    By fakeDecoy in forum General Questions
    Replies: 1
    Last Post: 12 Aug 2007, 10:47 PM

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