Post by Iamdbat » Mon Aug 21, 2017 7:39 am

I want to simply change add to cart to view product in the product category template and have the link not add something to the cart but go to the product page forcing customers to view the tabs etc. I have dabbled with code but cant get it right - please help if you know how. I know that when the button is pressed it calls the addtocart function - is there a view product function I can ask it to call instead and just rename the value"" of the button? I am using the styling for the add to cart button on the product page ... opencart 1.5.6.1

Active Member

Posts

Joined
Sat Jan 28, 2012 7:32 am

Post by IP_CAM » Mon Aug 21, 2017 8:18 am

how about this ? ;)
Ernie
Add2Cart Go2Cart - vQmod free OC v.1.5.5.1 - 1.5.6.4: (Default Theme)
https://www.opencart.com/index.php?rout ... on_id=4526
---
AddToCart to Product Detail (change button) free OC v.1.5.6 - 1.5.6.4: (Default Theme)
https://www.opencart.com/index.php?rout ... n_id=16469

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Iamdbat » Mon Aug 21, 2017 4:38 pm

The first one is
"This mod takes you to the shopping cart when you add a product to the cart.
* Adds the product to the cart and redirects you to the shopping cart."

I want to go to the product page not the shopping cart

The second one works but loses the CSS detail

Active Member

Posts

Joined
Sat Jan 28, 2012 7:32 am

Post by IP_CAM » Mon Aug 21, 2017 7:45 pm

Sorry, the first one was the wrong one, but I told you, that they are coded for
the OC Default Theme only, as they come.
I added a second one, I use this in my TestShops, and it always worked.
If you therefore use a Custom Theme, you have to slightly adapt them, to make 'em work.
Good Luck
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Iamdbat » Wed Aug 23, 2017 7:22 am

Tried you version and works perfect - you could charge for this you know - thank you very much

Active Member

Posts

Joined
Sat Jan 28, 2012 7:32 am

Post by IP_CAM » Wed Aug 23, 2017 9:26 am

well, it would not be nice, if everything would have a price tag, especially,
when it comes to just slightly modified Extensions, others already have
created for free. In addition, it needs some free wisdom around here, or then,
this place will be going down the drain, in part of it's Role and Function at least. 8)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 23 guests