Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove Product ID from Dialog

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-01-2002, 08:38 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Remove Product ID from Dialog

==============================================

Can anyone advise me How-To remove the Produt ID # from the dialog area?

For instance when a user selects a product the Product name is follwed by the Product ID# (ex. Great Product #33).

------------------------------------------------------------THANKS-------------

Hyperdelicious
==============================================
==============================================
Reply With Quote
  #2  
Old 11-01-2002, 12:42 PM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

Is this what you are looking for?
http://forum.x-cart.com/viewtopic.php?t=447
Reply With Quote
  #3  
Old 11-03-2002, 06:43 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Thanks

===============================================

Thank you very much.... it worked perfectly!!! Do you know if this will also remove he ID# from the upsell items? In fact if you could advise on how to replace the ID with a thumbnail I'd greatly appreciate it.

------------------------------------------------------------THANK YOU-----------

Hyperdelicious
===============================================
===============================================
Reply With Quote
  #4  
Old 11-03-2002, 07:47 AM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default

Hi,

To remove the productid from the upsell products, change your template from this:

Code:
{* $Id: related_products.tpl,v 1.6 2002/05/20 06:55:24 lucky Exp $ *} {if $product_links ne ""} {capture name=dialog} {section name=cat_num loop=$product_links} #{$product_links[cat_num].productid} { $product_links[cat_num].product|escape} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"} {/if}

To this:

Code:
{* $Id: related_products.tpl,v 1.6 2002/05/20 06:55:24 lucky Exp $ *} {if $product_links ne ""} {capture name=dialog} {section name=cat_num loop=$product_links} { $product_links[cat_num].product|escape} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"} {/if}


Hope that helps,
ATKOgirl
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #5  
Old 11-03-2002, 08:49 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Thanks but...

===============================================

Thanks ATKOgirl ... That worked great for removing the Product ID#.
Now How do I place a thumbnail in there?

-------------------------------------------------------------------THANKS--------

Hyperdelicious
===============================================
===============================================
Reply With Quote
  #6  
Old 11-03-2002, 09:11 AM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

This is from my modules/Upselling_Products/related_products.tpl Combination of codes others posted. Removes product id from upsell and inserts product image.
Remember to copy your code before changing in case it botches things up for you in your cart version.


Code:
{* $Id: related_products.tpl,v 1.6 2002/05/20 06:55:24 lucky Exp $ *} {if $product_links ne ""} {capture name=dialog} <table border=0 cellspacing=5> {section name=cat_num loop=$product_links} <td width=100%> [img]../image.php?productid={$product_links[cat_num].productid}[/img]<font class=TableCenterSubCategoryListTitleBlue>{ $product_links[cat_num].product|escape}</font> </td> </tr> {/section} </table> {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"} {/if}
Reply With Quote
  #7  
Old 11-03-2002, 10:18 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Ok now that worked but...

===============================================

Thanks Jeannie,.... Now can someone advise me as to how I can set a
size limit on the pics (thumbnail them) instead of having them displayed
in full size...

-------------------------------------------------------------THANKS AGAIN-----

Hyperdelicious
===============================================
===============================================
Reply With Quote
  #8  
Old 11-03-2002, 12:37 PM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

Hmmm, what happens if you replace the <img src> part of that code with some of what's in the product_thumbnail.tpl? Careful! Not tested.
Reply With Quote
  #9  
Old 11-03-2002, 03:25 PM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Been trying

===============================================

I've been working with the product_thumbnail and the resell.tpl and
haven't come up with something that works yet... what happens is it
replaces the image with the default (no image available) pic.

I've also tried just adding the {if} statement concerning image_x and
image_y, but for some unknown reason it doesn't work without the
entire string from the product_thumbnail.tpl... any other suggestions?

---------------------------------------------------------------THANKS------------


Hyperdelicious
===============================================
===============================================
Reply With Quote
  #10  
Old 11-25-2003, 07:22 AM
 
pifemaster pifemaster is offline
 

Member
  
Join Date: Sep 2003
Posts: 14
 

Default

Hello,

Has anyone tried this on version 3.4.9? I looked at my code in:
/modules/Upselling_Products/related_products.tpl and it is slightly different. All I want to do is remove the product ID from appearing in the related products list. I do not need the thumbnails to show.

Unfortunately, I am not very familiar with "smarty".

Thanks for the help,
Bob
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:28 PM.

   

 
X-Cart forums © 2001-2020