No problem, which version are you running?DannyMacD wrote:i am in no rush and would rather wait for a pro to code haha
many thanks
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Please integrate this into the core, this is the most useful addon I have seen!!
OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods
Hi Spike,spikeachu wrote:You'll need to insert a new column named 'template' of type VARCHAR into your product table. That should do the job.
Regards, Spike.
There are 2 tables that seem relevant: "product" and "product_description". Do I need to amend them both?
Karen
Using OC version 1.4.8b
http://catandcaboodle.com/
Two tables need a 'template' field inserting. These are 'category' and 'product'. 'product_description' shouldn't be amended by the mod.Karen wrote:Hi Spike,spikeachu wrote:You'll need to insert a new column named 'template' of type VARCHAR into your product table. That should do the job.
Regards, Spike.
There are 2 tables that seem relevant: "product" and "product_description". Do I need to amend them both?
Karen
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Code removed as making mod commercial.
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Is this contribution will be insert in core application as it suggested before ?
Single we go faster, together we go more away...
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Firstly thanks for helping me out with my previous question, which was a good few months ago it seems, but I'm only just getting back on to this project - and I've run into another issue, where I've obviously messed something up when installing.
Now I appreciate there may well be a number of reasons for this, but I thought I'd ask you first so you could point me in the right direction... I've got the option in the back end to select a template for my product and can choose an item and 'Save changes' with no problems or errors, the thing is my choice isnt being saved, the template reverts back to 'product.tpl' every time I go back to edit the product.
I've successfully add and changed template for categories, so I must have done something right during the install.
As I say, if you point out which bits of code I should be looking at that would be great. It seems like months since I installed the plugin and even touched opencart at all, so I can't instantly remember what I did to install it.......
Thanks.
From the description, ithink the likely candidate is file admin/model/catalog/product.phptimkirtley wrote:Hey spike.
Firstly thanks for helping me out with my previous question, which was a good few months ago it seems, but I'm only just getting back on to this project - and I've run into another issue, where I've obviously messed something up when installing.
Now I appreciate there may well be a number of reasons for this, but I thought I'd ask you first so you could point me in the right direction... I've got the option in the back end to select a template for my product and can choose an item and 'Save changes' with no problems or errors, the thing is my choice isnt being saved, the template reverts back to 'product.tpl' every time I go back to edit the product.
I've successfully add and changed template for categories, so I must have done something right during the install.
As I say, if you point out which bits of code I should be looking at that would be great. It seems like months since I installed the plugin and even touched opencart at all, so I can't instantly remember what I did to install it.......
Thanks.
Ensure that the first line of function addProduct,
$this->db->query ...
contains; template = '" . $data['template'] . '"
and the same for function editProduct.
Let me know how you get on.
Regards, Spike.
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Yeah turns out I didnt have that entry at all in the edit product function which would explain a lot.
You know your stuff, thanks Spike.
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
I'm nearing the end of the project i'm currently working on. As this has been ongoing for some months, it is going to take priority.
If all goes well, i'll see if I can find some free time at the weekend to update the mod, but I can't make any promises.
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Im using 1.4.9 aswell and cant seem to get it working.
I replaced all code as youve mentioned, but the chosen template has no effect. It still loads the default template. Was anyone able to fix this issue?
regards
moritz
Users browsing this forum: No registered users and 22 guests