If this is your first visit, check our documentation. To post, register or login.

Showing Model # in Shopping Cart

Locked

Started by yesac13 on 2 Oct 2008, 5:21 PM · Views: 2,016

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Oct 2008, 5:21 PM
#1
yesac13 avatar

yesac13

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #1 by yesac13

Some of my customers... prefer to shop online then call me, looking at the shopping cart to order the items over the phone. Or print out the shopping cart and fax or mail it to me. Yes, I have some strange customers, many of them simply refuse to actually pay online. Others have complex government bureaucratic crap with checks, etc - no credit cards or whatever that they can use to pay online. They're a minority but do tend to spend lots of $$ in relation to others so I live with their idiosyncratic ways.

Now you have the idea. I have thousands of items and its sometimes hard to figure out what the customer is ordering since I do not have the model # or SKU (whatever you call) in the shopping cart. In the shopping cart, theres only the picture and the title of each item. No model # or SKU anywhere.

Is there a way to show the model # in the shopping cart (apart from rewriting the title to include the model #)?

If there are threads on this exact issue, please be kind and show me where. I couldn't find any info on this particular issue.

  • Casey
3 Oct 2008, 12:33 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Post #2 by rstevenson

Do you have the model number entered into the Products Model field in admin/Catalog/Categories/Products when you edit the details of a product? (It's down near the bottom; second field under the Description.)

If so, then that can be shown in list views and on product detail pages by setting it to show in admin/Configuration/Product Listing, set Display Product Model to 1. You probably have that done already.

So for the next step, have a look at this thread...Can I show the Model number in the cart? from almost 2 years ago. I did what Linda said to do in that thread and it worked, as you can see on my wholesale site below. I'm not sure about using that code in later versions, but something very similar should work.

HTH

Rob

Breakfast: the most important donut of the day.

3 Oct 2008, 1:57 PM
#3
yesac13 avatar

yesac13

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #3 by yesac13

I do have the model number in the Products Model field. That bit about the Display Product Model set to 1 was new to me, mine was set to 2. I tried it and am not sure if I like the looks (scatters the pictures somewhat). But the model # still doesn't show up in the shopping cart.

That code in the thread... will it work with Zen Cart v. 1.3.7.1.?

  • Casey
4 Oct 2008, 12:19 AM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Post #4 by rstevenson

I used the code on a 1.3.7 cart. I don't see why it wouldn't work on 1.3.7.1, which was, I believe, a security update.

Rob

Breakfast: the most important donut of the day.

4 Oct 2008, 6:22 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #5 by ajeh

Using your templates and overrides ...

In the file:
tpl_shopping_cart_default.php

Change this line from:

<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>'; ?></span></a>

to read:

<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<br />model: ' . zen_products_lookup($product['id'], 'products_model') . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>

The model is being shown with the addition of the code in red:

<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'][B] . '<br />model: ' . zen_products_lookup($product['id'], 'products_model')[/B] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>

Once working, you can make it pretty ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!