Post by DannyMacD » Fri Jul 23, 2010 5:51 am

i am in no rush and would rather wait for a pro to code haha :)

many thanks

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am

Post by spikeachu » Fri Jul 23, 2010 5:58 am

DannyMacD wrote:i am in no rush and would rather wait for a pro to code haha :)

many thanks
No problem, which version are you running?

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by DannyMacD » Fri Jul 23, 2010 7:24 pm

1.4.8b but its custom. thanks :)

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am

Post by ThePath » Fri Jul 23, 2010 7:42 pm

Just found this thread and I must say this is awesome. I would also request that Q and Daniel build this functionality into the core as it means you can be hugely flexible with the design!! It would be getting more like a wordpress templating system with this! Awesome.

Please integrate this into the core, this is the most useful addon I have seen!! O0 :laugh: :joker: :crazy:

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by Karen » Fri Jul 30, 2010 8:49 am

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


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by spikeachu » Fri Jul 30, 2010 2:55 pm

Karen wrote:
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.
Hi Spike,

There are 2 tables that seem relevant: "product" and "product_description". Do I need to amend them both?

Karen
Two tables need a 'template' field inserting. These are 'category' and 'product'. 'product_description' shouldn't be amended by the mod.

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by spikeachu » Sun Aug 01, 2010 5:22 am

As requested. Hopefully i've included all the code. I've had a very busy week, so if there's any issues I hope you'll forgive me and let me know. I'll look where i went wrong.


Code removed as making mod commercial.
Last edited by spikeachu on Sat Jun 18, 2011 9:30 am, edited 1 time in total.

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by JAY6390 » Sun Aug 01, 2010 5:37 am

Very detailed list of changes :) Very nice work spikeachu. Personally I'd rather these templates were in their own separate folders rather than directly in the product folder with all the others, just for continuity, but that's nothing major. Great job!

ImageImageImage

SEO MEGA KIT PLUS - Get your site ranking higher in the search engines
Better Product SEO URL's - Perfectly structured product links
SEO URL's Route Editor PRO - Make ANY url on your site have clean keywords - even third party extensions (remove index.php)


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by mfrerebeau » Fri Aug 20, 2010 10:49 pm

This is a very great betterment for OpenCart !
Is this contribution will be insert in core application as it suggested before ?

Single we go faster, together we go more away...


User avatar
New member

Posts

Joined
Fri Aug 13, 2010 5:29 pm
Location - France

Post by spikeachu » Sat Aug 21, 2010 4:09 pm

Integration into the core i think is a decision for Qphoria / Daniel to make for v1.5.0 - Needless to say, I have no problem with it going in there.

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by timkirtley » Tue Sep 14, 2010 12:12 am

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.

New member

Posts

Joined
Fri Jun 04, 2010 7:01 am

Post by spikeachu » Tue Sep 14, 2010 12:42 am

timkirtley 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.
From the description, ithink the likely candidate is file admin/model/catalog/product.php

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by timkirtley » Tue Sep 14, 2010 4:32 pm

Ah brilliant,

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.

New member

Posts

Joined
Fri Jun 04, 2010 7:01 am

Post by konfetaz » Mon Sep 20, 2010 12:36 am

what about 1.4.9? i installed it, but don't working...

Newbie

Posts

Joined
Thu Sep 16, 2010 10:14 pm

Post by spikeachu » Mon Sep 20, 2010 1:33 am

Not tested it for 1.4.9. To be honest, I'm not developing for 1.4.9 right now, as i've still not finished my 1.4.8 project. I will probably update the mod eventually, but it's not near the top of my agenda.

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by konfetaz » Mon Sep 20, 2010 10:37 pm

so maybe i can pay you some cash to make it on 1.4.9.1 ?

Newbie

Posts

Joined
Thu Sep 16, 2010 10:14 pm

Post by spikeachu » Tue Sep 21, 2010 6:19 am

Money isn't the issue. Any mods I make available will always be for free as I strongly believe in the take something / give something back philosophy. Finding time at the moment is the problem, there aren't enough hours in the day right now.

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by badcat » Wed Dec 22, 2010 4:39 am

Hi - Has there been any progress on this? 1.4.9.3 is here and it seems like 1.5 will change things substantially... thanks

Newbie

Posts

Joined
Thu Sep 23, 2010 4:34 am


Post by spikeachu » Wed Dec 22, 2010 5:23 am

I've picked up further paid work, so updates for 1.4.9 are on the back burner for now. I haven't checked, but I can't imagine that there will be any update required to work with 1.4.9. I understand that the template system is being radically overhauled in 1.5, so functionality of this module may already be included out of the box.

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


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by fourgood » Tue May 31, 2011 5:00 am

This is a great mod! Thanks for sharing it with us.
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

Active Member

Posts

Joined
Wed Oct 20, 2010 9:49 pm
Who is online

Users browsing this forum: No registered users and 3 guests