Page 1 of 1

Price on Application

Posted: Fri Feb 12, 2010 6:11 pm
by Microsite Merchant
How can I modify my site so that I can put 'POA' in as a price.

Re: Price on Application

Posted: Fri Feb 12, 2010 9:31 pm
by burrito
you have to change the Dbase to allow something other then an Integer

allthough you could also try to replace a specific number (example: 99999) for the text "POA" (This is probably easiest)

keep in mind though that the checkout and everything won't work, I'm not even sure how the cart will work...

Re: Price on Application

Posted: Fri Feb 12, 2010 10:15 pm
by i2Paq

Re: Price on Application

Posted: Fri Feb 12, 2010 11:00 pm
by burrito
except if not ALL $0 products are POA, then that won't be right.... but probably a good start

Re: Price on Application

Posted: Fri Feb 12, 2010 11:15 pm
by Microsite Merchant
Thank you. I'll give those a go.

Re: Price on Application

Posted: Fri Mar 12, 2010 4:40 pm
by Microsite Merchant
Qphoria's mod worked perfectly but it doesn't work in 1.4.2

I get:

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /............../system/library/currency.php on line 78

Re: Price on Application

Posted: Fri Mar 12, 2010 8:51 pm
by Qphoria
which mod?

Re: Price on Application

Posted: Fri Mar 12, 2010 11:41 pm
by Microsite Merchant
Qphoria wrote:
nzjollyroger wrote: however when you have pickup for shipping its show ups as:
is there some way to make it apply to everything but the free shipping ?
Try this:

Code: Select all

if ($format && (int)$value == 0) {
	$trace = debug_backtrace();
	if (isset($trace[1]) && $trace[1]['class'] == 'ModelShippingFree') {
		return "0.00";
	} else {
		return 'coming soon';
	}
}

Re: Price on Application

Posted: Sat Mar 13, 2010 12:24 am
by Qphoria
That code works the same in 1.4.2

Re: Price on Application

Posted: Sat Mar 13, 2010 2:15 am
by Microsite Merchant
That's bizarre.

I tried it once and got an error, now I've tried again and it works ???

Thanks Q.