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)
-   -   "Delete" and "Edit Options" not showing in cart (https://forum.x-cart.com/showthread.php?t=62656)

xcellere 02-15-2012 12:46 PM

"Delete" and "Edit Options" not showing in cart
 
http://sunthingproductions.com/home.php?sunthing=store

Add an item to the cart, then look at the cart. The "Go" buttons for the "Delete" and "Edit" options show, but the text for the two functions is no longer there. How can I get it back?

cflsystems 02-15-2012 12:56 PM

Re: "Delete" and "Edit Options" not showing in cart
 
These are language variables. So most likely you deleted the text for them. Search langauge variables for lbl_delete and lbl_edit

xcellere 02-15-2012 01:11 PM

Re: "Delete" and "Edit Options" not showing in cart
 
I checked the language variables, and lbl_delete and lbl_edit are there, and with the correct text entries. Here's how the code looks like in /customer/main/cart.tpl:

<tr>
<td class="ButtonsRow">{include file="buttons/delete_item.tpl" href="cart.php?mode=delete&amp;productindex=`$prod ucts[product].cartid`"}</td>
<td class="ButtonsRow">
{if $products[product].product_options ne ''}
{if $config.UA.platform eq 'MacPPC' && $config.UA.browser eq 'MSIE'}
{include file="buttons/edit_product_options.tpl" id=$products[product].cartid js_to_href="Y"}
{else}
{include file="buttons/edit_product_options.tpl" id=$products[product].cartid}
{/if}
{/if}
</td>
</tr>

xcellere 02-21-2012 12:23 PM

Re: "Delete" and "Edit Options" not showing in cart
 
Any ideas?

cflsystems 02-21-2012 12:57 PM

Re: "Delete" and "Edit Options" not showing in cart
 
It's in
buttons/edit_product_options.tpl

xcellere 02-21-2012 02:05 PM

Re: "Delete" and "Edit Options" not showing in cart
 
This was all that was in that file:

Code:

{if !$target}{assign var="target" value="cart"}{/if}
{include file="buttons/button.tpl" button_title=$lng.lbl_edit_options href="javascript: openPopupPOptions('`$target`', '`$id`');" target=""}


xcellere 02-21-2012 03:22 PM

Re: "Delete" and "Edit Options" not showing in cart
 
1 Attachment(s)
As an addendum, I remember editing a colspan entry somewhere, could that have affected this issue? If you go to the checkout page, most of the entries are now missing in the same fashion.

EDIT: I've uploaded a pic from my iPhone showing the cart page, and when I zoomed up close, you can see the 'Delete' and 'Edit Options' text is there, just really small. Same goes for all the entry boxes on the checkout page.

cflsystems 02-21-2012 04:56 PM

Re: "Delete" and "Edit Options" not showing in cart
 
You may have some element unclosed and it applies to all following, or your span sets font-size really small

xcellere 02-21-2012 05:10 PM

Re: "Delete" and "Edit Options" not showing in cart
 
You got it right, the body font-size was set to 0px. :) My bad!

cflsystems 02-21-2012 05:12 PM

Re: "Delete" and "Edit Options" not showing in cart
 
Glad you found it


All times are GMT -8. The time now is 04:23 AM.

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