X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove Product ID from Dialog (https://forum.x-cart.com/showthread.php?t=506)

Hyperdelicious 11-01-2002 08:38 AM

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
==============================================
==============================================

Jeannie 11-01-2002 12:42 PM

Is this what you are looking for?
http://forum.x-cart.com/viewtopic.php?t=447

Hyperdelicious 11-03-2002 06:43 AM

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-----------

:D Hyperdelicious
===============================================
===============================================

ATKOgirl 11-03-2002 07:47 AM

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

Hyperdelicious 11-03-2002 08:49 AM

Thanks but...
 
===============================================

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

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

:) Hyperdelicious
===============================================
===============================================

Jeannie 11-03-2002 09:11 AM

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}


Hyperdelicious 11-03-2002 10:18 AM

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
===============================================
===============================================

Jeannie 11-03-2002 12:37 PM

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.

Hyperdelicious 11-03-2002 03:25 PM

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
===============================================
===============================================

pifemaster 11-25-2003 07:22 AM

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


All times are GMT -8. The time now is 01:11 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.