- Posts: 28
- Thank you received: 1
Re: "Add to Cart" button changes the home page!!!
-
MariusR
Inactive member - Member
Less
More
12 years 9 months ago - 12 years 9 months ago #16212
by MariusR
Replied by MariusR on topic Re: "Add to Cart" button changes the home page!!!
problem solved:
Change administrator/components/com_virtuemart/html/basket.php
line 147 /* UPDATE CART / DELETE FROM CART */
$action_url = $mm_action_url.basename($_SERVER);
change to ;
$action_url = 'index.php?page=shop.cart&option=com_virtuemart&Itemid='.$sess->getShopItemid();
Tested on VM 1.1.9 & J! 1.5.25
I don't know where this problem came from but I post the solution here just in case others run into this kind o error
best regards!
M.R.
Change administrator/components/com_virtuemart/html/basket.php
line 147 /* UPDATE CART / DELETE FROM CART */
$action_url = $mm_action_url.basename($_SERVER);
change to ;
$action_url = 'index.php?page=shop.cart&option=com_virtuemart&Itemid='.$sess->getShopItemid();
Tested on VM 1.1.9 & J! 1.5.25
I don't know where this problem came from but I post the solution here just in case others run into this kind o error
best regards!
M.R.
Last edit: 12 years 9 months ago by MariusR.
The following user(s) said Thank You: ivan.milic
Please Log in to join the conversation.
-
MariusR
Inactive member - Member
Less
More
- Posts: 28
- Thank you received: 1
12 years 9 months ago - 4 years 3 months ago #16265
by MariusR
Replied by MariusR on topic Re: "Add to Cart" button changes the home page!!!
Hello guys!
It seems that I rushed to post here the solution I found on VM Forum but it seems that it was NOT entirely solving it...sorry about that.
The problem with update/delete quantity of products on shop's cart page seems to be due to some template problems as you cand see on your demo page same issue with "update/delete" products from cart.
After I added a product to cart I tried to update the quantity and the result was this page after I hit the update button: demo.hotjoomlatemplates.com/index.php?template=cosmetics
As you may see it's a page simlar to the home page but not the Home page.
here I made 2 screenshots from your demo site just to make sure you understand exactly what's the problem I'm talking about
step 1 + step 2:
result of this two steps:
Info just in case it might help to figure out where this problem comes from: 1. I instaled this template using the "hot start" insatllation.
2. I made the tests using Ghoogle Crome and Firefox (boths up to date).
please give me a hand to solve this.
the link to my website is this:
thank you!
M.R.
It seems that I rushed to post here the solution I found on VM Forum but it seems that it was NOT entirely solving it...sorry about that.
The problem with update/delete quantity of products on shop's cart page seems to be due to some template problems as you cand see on your demo page same issue with "update/delete" products from cart.
After I added a product to cart I tried to update the quantity and the result was this page after I hit the update button: demo.hotjoomlatemplates.com/index.php?template=cosmetics
As you may see it's a page simlar to the home page but not the Home page.
here I made 2 screenshots from your demo site just to make sure you understand exactly what's the problem I'm talking about
step 1 + step 2:
result of this two steps:
Info just in case it might help to figure out where this problem comes from: 1. I instaled this template using the "hot start" insatllation.
2. I made the tests using Ghoogle Crome and Firefox (boths up to date).
please give me a hand to solve this.
the link to my website is this:
Code:
http://www.professionalcosmetics.ro/
M.R.
Last edit: 4 years 3 months ago by milos.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 9 months ago - 12 years 9 months ago #16291
by ivan.milic
Replied by ivan.milic on topic Re: "Add to Cart" button changes the home page!!!
Add this at the end of head section of index.php of template just above </head>:
Code:
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('FORM:visible:has(> input[value="com_virtuemart"]) ').attr('action',window.location.href);
});
</script>
Last edit: 12 years 9 months ago by ivan.milic.
Please Log in to join the conversation.
-
MariusR
Inactive member - Member
Less
More
- Posts: 28
- Thank you received: 1
12 years 9 months ago #16327
by MariusR
Replied by MariusR on topic Re: "Add to Cart" button changes the home page!!!
I inserted it. It seems that the problem was solved. If any more issues come up I will get back to you.
thank you very much!
thank you very much!
Please Log in to join the conversation.
Time to create page: 0.082 seconds