Forums / General Questions / Turn off product info link

Turn off product info link

Locked

Views: 1,820

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
17 Aug 2006, 12:32 AM
#1
senojeel_mac_com avatar

senojeel_mac_com

New Zenner

Join Date:
Jul 2006
Posts:
39
Plugin Contributions:
0

Turn off product info link

I want to have the product list, but I don't want the products in the list to have a link to their info page. Does that make sense? I want customers to have to add to the cart from the listing page. How do I get rid of the of the product to its info page?

Here is the page. http://indychoir.org/tickets/

Thanks for any help!
Shawn

17 Aug 2006, 2:50 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Turn off product info link

... do you expect everyone to know exactly what each of the performances consists of?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

18 Aug 2006, 12:38 AM
#3
senojeel_mac_com avatar

senojeel_mac_com

New Zenner

Join Date:
Jul 2006
Posts:
39
Plugin Contributions:
0

Re: Turn off product info link

Yes. I actually want to send the user from a page I built to the list to purchase and it doesn't need to explain what each one is again.

Does that make sense?

18 Aug 2006, 2:56 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn off product info link

Just turn off the Multiple Add To Cart option:
Admin->Configuration->Product Listing->Display Multiple Products Qty Box Status.... = 0

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2006, 12:12 PM
#5
senojeel_mac_com avatar

senojeel_mac_com

New Zenner

Join Date:
Jul 2006
Posts:
39
Plugin Contributions:
0

Re: Turn off product info link

I still want them to add the producat to the cart though.

18 Aug 2006, 12:17 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn off product info link

Did you try the suggestion? You should see an add-to-cart button next to each product instead of at the top and bottom of the list.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2006, 12:18 PM
#7
senojeel_mac_com avatar

senojeel_mac_com

New Zenner

Join Date:
Jul 2006
Posts:
39
Plugin Contributions:
0

Re: Turn off product info link

No sorry, I am not near my development machine. I will try it later and report back.

Thanks!

19 Aug 2006, 7:21 PM
#8
senojeel_mac_com avatar

senojeel_mac_com

New Zenner

Join Date:
Jul 2006
Posts:
39
Plugin Contributions:
0

Re: Turn off product info link

Thanks DrByte. I see what you mean now and that is much better.

Thanks for the advice.

Shawn

20 Aug 2006, 8:41 PM
#9
senojeel_mac_com avatar

senojeel_mac_com

New Zenner

Join Date:
Jul 2006
Posts:
39
Plugin Contributions:
0

Re: Turn off product info link

Getting back to the subject...

Does anyone know where the code is for the product links? I want to remove the links to the product info from the listing page and when they are in the shopping cart. I have searched through the code of the shopping cart, but only found the following code in the tpl_shopping_cart_default.php:

<?php
  foreach ($productArray as $product) {
?>

I couldn't find where the $productArray was coming from.

Any ideas? Or if there is soething easier...

Thanks!
Shawn

21 Aug 2006, 3:54 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn off product info link

[email protected]:

<?php foreach ($productArray as $product) { ?>
> 
> I couldn't find where the $productArray was coming from.$productArray comes from the header_php.php file for that page.


I guess you want to bust these:
modules/pages/shopping_cart/header_php.php:```
  $linkProductsImage = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']);
  $linkProductsName = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']);

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.