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)
-   -   Not listing prices on some items only (https://forum.x-cart.com/showthread.php?t=20059)

Bodhipaksa 02-21-2006 07:46 AM

Not listing prices on some items only
 
I run a nonprofit site. We sell some stuff but we also get donations through our shopping cart.

For the donations, it's a bit clumsy showing a dollar value of $1 with people then having to change the quantity in the cart.

Ideally, for items in the donation category (we have different projects that people can donate to) there would be no price shown. Presumably this would involve some kind of "if" statement, but that's way beyond my level of expertise.

I'd welcome any suggestions for how to make this change.

shan 02-21-2006 09:04 AM

just leave the price empty and it turns into an enter price box

Bodhipaksa 02-21-2006 05:41 PM

Thanks, Shan. Leaving the price at zero brings up a text box, but when I click "add to cart" I'm taken to the shopping cart where the following is displayed:

$ 0.00 x [ ]= $ 0.00

I can't get x-cart to leave the price empty. By default it inserts 0.00 as the price.

Any other thoughts?

Bodhipaksa 02-21-2006 05:44 PM

I should have mentioned that I've tried going to the general settings and changing the minimum amount from empty to blank, but that's made no difference.

shan 02-22-2006 04:08 AM

if you look in product.tpl youll see a bit of code that makes that text box appear, you can set the default value of it to a certain number or you can make it into a drop menu with say 5,10,15,20 as the options etc

Bodhipaksa 02-22-2006 05:36 AM

I've looked in product.tpl but I'm not sure which piece of code you're referring to and I'm afraid I wouldn't know how to make the change you suggested. Would you mind spelling that all out for me?

I'd prefer the option of having a default value rather than a drop-down list with set amounts.

Many thanks.

shan 02-22-2006 05:57 AM

find this (approx line 43)

Code:

{else}
<INPUT name="price" type="text" size="7">
{/if}


change for this

Code:

{else}
Make a Donation : <INPUT name="price" type="text" value="10" size="7">
{/if}


change 10 for whatever you want to be there by default

Bodhipaksa 02-22-2006 08:22 AM

Thanks for your help, Shan. How's the weather in Brum?

We're getting there. There's just one remaining problem, which is that the donor has to click on "add to cart" first in the category page and then again in the product detail page. That's a bit offputting.

Any thoughts about how we could streamline this?

Thanks.

Bodhipaksa 02-22-2006 04:57 PM

I thought I'd found the solution in another post of yours, Shan (http://forum.x-cart.com/viewtopic.php?t=12019). This also dealt with the add to cart button taking people to the product details page rather than to the cart when a product has a zero price, but when I tried that modification I was back to having $0 x n = $0 in the cart again.

Bodhipaksa 02-24-2006 04:48 AM

Just a bump really, and an appeal for help. As a reminder, Shan has helped me to have "products" in our nonprofit site's "donations" category (the various "products" are different project that people can give money to) have a text box rather than a drop-down list. That's great. People can now enter their own amount rather than being presented with a $1 donation and having to change the quantity in the cart.

The remaining probolem though is that people wanting to donate click on "add to cart" in the donations category page, but instead of being taken to the cart they are taken to the product details page, where they have to click on "add to cart" once more. Obviously this isn't very customer-friendly, and I'd appreciate any help either in:

1) getting the "add to cart" in the donations category page to say ""Read more details" or

2) taking people straight to the cart when they click on the first "add to cart" link.

Thanks,
Bodhipaksa

Bodhipaksa 03-18-2006 05:58 AM

Found the answer is another post of Shan's: http://forum.x-cart.com/viewtopic.php?t=12019

Clicking on the "Buy now" button now takes you straight to the cart with $0 items.


All times are GMT -8. The time now is 01:43 PM.

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