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

Help again please, make pic small and all on one line "

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-09-2004, 05:01 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Help again please, make pic small and all on one line "

Hi all, help also needed, when someone adds item to cart the picture is large, what i would like to do is reduce picture to a small thumbnail
and make it all straight on one line, Jon did kindly give the code to make it all appear on one line, but ive just brought Jons easy checkout mod, so i dont think the orginal code he gave would know work with this new checkout, any help would again be greatly appreciated.
Many thanks to all, Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #2  
Old 12-09-2004, 08:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Hi a1deano, post the code for the cart page in question and we'll see what we can do.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-09-2004, 10:23 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Thanks for getting back Balinor

Hi ya balinor, i appreciate your help and getting back to me, as before i did orginaly follow Jons previous code for making the item in the cart page
all appear on one line, my problem though i didn't like how big the picture was, i wish to make it smaller like thumb nail size if possible, Jon also gave me the code to cut the picture out completly, but after thinking about it, its better i think to have a small thumbnail picture next to the description of what the customer is buying, since then, i have brought Jons new checkout mod, so the orginal code won't work here, i appreciate your help and efforts regards Dean.
Here is the code for the cart.tpl -

{* $Id: cart.tpl,v 1.74.2.2 2004/08/11 09:46:01 max Exp $ *}
<H3>{$lng.lbl_your_shopping_cart}</H3>
{$lng.txt_cart_header}
{if $active_modules.Gift_Certificates ne ""}
{$lng.txt_cart_note}
{/if}



{capture name=dialog}



{if $products ne ""}
<FORM action="cart.php" method="post" name="cartform">
<TABLE border="0" width="100%">
{section name=product loop=$products}
{if $products[product].hidden eq ""}
<TR><TD width="50" valign="top">
{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$products[product].image_x image_y=$products[product].image_y product=$products[product].product tmbn_url=$products[product].tmbn_url}
</TD>
<TD valign="top">
<FONT class="ProductTitle">{$products[product].product}</FONT>



<TABLE border="0" cellpadding="0" cellspacing="0" width="100%"><TR><TD>
{$products[product].descr|truncate:150:"...":true}
</TD></TR></TABLE>




{if $products[product].product_options ne ""}
{$lng.lbl_selected_options}:

<TABLE>
{foreach from=$products[product].product_options item=v}
<TR>
<TD>{$v.class}:</TD>
<TD>{$v.option_name}</TD>
</TR>
{/foreach}
</TABLE>




{/if}
{assign var="price" value=$products[product].display_price}
{if $active_modules.Product_Configurator ne "" and $products[product].product_type eq "C"}
{include file="modules/Product_Configurator/pconf_customer_cart.tpl" main_product=$products[product]}
{assign var="price" value=$products[product].pconf_display_price}



{/if}
<DIV align="left">
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice and $products[product].product_type ne "C"}
{include file="modules/Subscriptions/subscription_priceincart.tpl"}
{else}
<FONT class="ProductPriceConverting">{include file="currency.tpl" value=$price} x {if $active_modules.Egoods and $products[product].distribution}1<INPUT type="hidden"{else}<INPUT type="text" size=3{/if} name="productindexes[{$products[product].cartid}]" value="{$products[product].amount}"> = </FONT><FONT class="ProductPrice">{math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted}</FONT><FONT class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}</FONT>
{if $config.Taxes.display_taxed_order_totals eq "Y" and $products[product].taxes}
{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}
{/if}
{/if}




{include file="buttons/delete_item.tpl" href="cart.php?mode=delete&productindex=`$products [product].cartid`"}
{if $products[product].product_options ne ''}
{include file="buttons/edit_product_options.tpl" href="javascript:window.open('`$catalogs.customer` /popup_poptions.php?target=cart&id=`$products[product].cartid`','POptions','width=400,height=350,toolbar =no,status=no,scrollbars=yes,resizable=no,menubar= no,location=no,direction=no');"}
{/if}
</DIV>
</TD></TR>
<TR><TD colspan="2"><HR size="1" noshade></TD></TR>
{/if}
{/section}
</TABLE>
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts}
{/if}
{include file="customer/main/cart_totals.tpl"}




{if $js_enabled}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD>
{include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}

{include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"}
</TD>
<TD align="right">
{include file="buttons/button.tpl" button_title=$lng.lbl_checkout style="button" href="cart.php?mode=checkout"}
</TD>
</TR>
</TABLE>
{else}
<INPUT type="hidden" name="mode" value="checkout">
{include file="submit_wo_js.tpl" value=$lng.lbl_checkout}
{/if}
</FORM>
{else}
{$lng.txt_your_shopping_cart_is_empty}
{/if}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_items content=$smarty.capture.dialog extra="width=100%"}
{if $cart.coupon_discount eq 0 and $products ne ""}



{if $active_modules.Discount_Coupons ne ""}
{include file="modules/Discount_Coupons/add_coupon.tpl}
{/if}
{/if}
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #4  
Old 12-09-2004, 12:15 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

change


to


also wrap code in code tags when you post in the forum so its easier to read
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 12-09-2004, 04:42 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

Hi shan, many thanks for posting the code, really greatful, it looks much better with smaller picture, manage to get it all on one line as well.
Just altered small piece of code..

Shan please could you advise how i wrap code in code tags when i post in the forum so its easier to read, not sure how to go about this, like you say its then easier for others to understand..
Many thanks again, regards Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #6  
Old 12-09-2004, 05:45 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

select the code and click the code button
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 12-10-2004, 08:27 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Shan any possable help with this problem

Hi shan, thanks again for your help, i dont surpose you know the code
so i can put the products varients on the same page as the product
along side the quantity box, rather than a customer having to click on
"see details" to choose which color they want or size etc..
Hope i make sence, best regards Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
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 01:42 PM.

   

 
X-Cart forums © 2001-2020