Post by Microsite Merchant » Fri Feb 12, 2010 6:11 pm

How can I modify my site so that I can put 'POA' in as a price.


Posts

Joined
Wed Jun 03, 2009 10:57 pm

Post by burrito » Fri Feb 12, 2010 9:31 pm

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

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by i2Paq » Fri Feb 12, 2010 10:15 pm


Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by burrito » Fri Feb 12, 2010 11:00 pm

except if not ALL $0 products are POA, then that won't be right.... but probably a good start

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by Microsite Merchant » Fri Feb 12, 2010 11:15 pm

Thank you. I'll give those a go.


Posts

Joined
Wed Jun 03, 2009 10:57 pm

Post by Microsite Merchant » Fri Mar 12, 2010 4:40 pm

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


Posts

Joined
Wed Jun 03, 2009 10:57 pm

Post by Qphoria » Fri Mar 12, 2010 8:51 pm

which mod?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Microsite Merchant » Fri Mar 12, 2010 11:41 pm

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';
	}
}


Posts

Joined
Wed Jun 03, 2009 10:57 pm

Post by Qphoria » Sat Mar 13, 2010 12:24 am

That code works the same in 1.4.2

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Microsite Merchant » Sat Mar 13, 2010 2:15 am

That's bizarre.

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

Thanks Q.


Posts

Joined
Wed Jun 03, 2009 10:57 pm
Who is online

Users browsing this forum: No registered users and 74 guests