Post by Raydar » Tue Dec 10, 2013 6:44 pm

Is there a way to make the model number the same as the product title? I sell photos and each photo has their own title. Rather than create a name and model number for each photo it is easier for me to just use the title of each photo as the model number, because once it is sold, I no longer require the same model number any more.

How to make plain webpage links on the site. For example I might want to create a page that talks about the photography without offering anything for sale. What would be the best way for this please?

Not sure how to make my OP use Australian currency; I've had a look at some of the currency mods, but they seem to cover all currencies.

Thanks

Ray

Newbie

Posts

Joined
Tue Nov 19, 2013 10:46 pm

Post by billynoah » Wed Dec 11, 2013 1:49 am

are you saying that you want to automatically duplicate product name to model number field?

Image


Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by Raydar » Wed Dec 11, 2013 3:59 pm

Hi Billy,

Yes, my model numbers are one time use model number.

Thanks

Ray

Newbie

Posts

Joined
Tue Nov 19, 2013 10:46 pm

Post by billynoah » Thu Dec 12, 2013 12:59 am

still not sure i completely understand but you could do something like this (i'm using 1.5.5.1 so the line numbers may not be the same if you're on a different version):

1) leave model field blank and only fill in name field
2) change the part of the query in line 4 and line 121 of "admin > model > catalog > product.php" that reads (leave the rest of the query untouched):

Code: Select all

product SET model = '" . $this->db->escape($data['model'])
to

Code: Select all

product SET model = '" . $this->db->escape($data['name'])
3) comment out lines 1269 - 1271 of the file "admin > controller > catalog > product.php" by adding "//" before each

that way when you enter a product name it will be inserted into the model field in your db when you save.

you could make more extensive edits like remove the model field from the form altogether but at least the above is a quick and dirty fix which should do what you want.
Raydar wrote:How to make plain webpage links on the site. For example I might want to create a page that talks about the photography without offering anything for sale. What would be the best way for this please?
To make a webpage with info about a topic use an Information page.

Image


Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by Raydar » Wed Dec 18, 2013 4:47 pm

Hi Billy,

Sorry about the delay in responding, I work away. Thanks for the information, I'll get onto that later tonight.

Regards

Ray

Newbie

Posts

Joined
Tue Nov 19, 2013 10:46 pm
Who is online

Users browsing this forum: No registered users and 35 guests