Post by maema » Wed Apr 28, 2010 5:55 pm

Hello...

in the product page there is a field called "LOCATION" i don't use it... and i don't know what is the use also..
Can I use it for sorting... so how to modify the PHP ... instead using date...


MOD

i done that : "' ORDER BY p.location ASC LIMIT " . (int)$limit);
Work using location ;-)

but what location is for ????

New member

Posts

Joined
Fri Nov 27, 2009 3:38 am

Post by i2Paq » Thu Apr 29, 2010 2:38 am

This is used for the location in your Store or Warehouse.

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 Qphoria » Thu Apr 29, 2010 2:49 am

Its actually pretty useless... only as a data field in the product itself. It isn't used anywhere else

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by evan01 » Thu Sep 02, 2010 6:16 am

No it's not ... I use it to switch on/off a product's appearance in one of my xml feeds so don't remove it ;)

Newbie

Posts

Joined
Thu Aug 26, 2010 9:08 pm

Post by Qphoria » Thu Sep 02, 2010 9:02 am

evan01 wrote:No it's not ... I use it to switch on/off a product's appearance in one of my xml feeds so don't remove it ;)
Yea.. thats really all its good for is an "extra" field. That is why I leave it.. I've recommended a lot of mods that use that field for triggering. I wont remove it

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by tweezer » Thu Nov 18, 2010 4:45 am

I have a question about this field. I want to use it in my product.tpl file. Something like if $location == "to something" do this or that. Is it called $location??

Code: Select all

if $location == "x" {
then do this
} 

Newbie

Posts

Joined
Thu Nov 18, 2010 4:32 am

Post by Qphoria » Thu Nov 18, 2010 5:52 am

Code: Select all

if ($product_info['location'] == 'x') 

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by tweezer » Thu Nov 18, 2010 10:29 pm

Wow speedy reply... thanks! I was also thinking that I could just pass a value/name with the options but that may be more complicated then it's worth. Probably just use this location thing. Thanks again.

Newbie

Posts

Joined
Thu Nov 18, 2010 4:32 am
Who is online

Users browsing this forum: Amazon [Bot] and 43 guests