product special price changes in checkout page opencart - php

I am trying to add special price for my product in OpenCart 2.0.1.1 with custom theme. on first time it will show fine. but, When I click on add to cart button and trying to buy that product in checkout page special price is getting disappeared and it shows product MRP price, when I return to same product page special price is not shown, it only shows my MRP price.

You should assign a correct "Customer Group" when setting a special price for an item, if you delete this customer group later this special price will disappear.

Related

I want to add a feature in woocommerce cart were user can add margin and it should with total price of a procuct in woocommerce

Expected Result
I want a feature where user can add margin in a product price for which he is placing order in woocommerce cart or checkout page.

How adding custom price to download price?

I need to adding custom price with custom meta to EDD download item price.If my item price is $50 and custom price is $5 so :
The final price should be $55 which added to cart.
In getting meta and displaying it i have no problem but how can adding it to default item price for making a final price that user will pay it ?

Woocommerce sale price update API call is not updating front-end

I have working WC shop. When I try to change the price to sale, I am using this code:
$prid = wc_get_product_id_by_sku('123456');
update_post_meta($prid,'_sale_price', 11.22);
update_post_meta($prid,'_price', 11.22);
This is a variable product.
So on the admin panel, it is showing that there is a sale price, but in the front-end I don't see it until I update the product by clicking the save button.
Why doesn't it show the sale price in the front-end before the save button is clicked?

Magento 2 wrong product price in cart after removal of category discount

In Magento 2 I have created a custom module category discount. When active its working fine for product list, details and cart view page.
But when I remove this discount it shows the original price for list and details page which is correct but mini cart view shows me the discounted price which shouldn't be the case. However if I update the quantity then it's fine.
I don't want to click the update button in the mini cart view for the original price. I want to do this using an observer.

Prestashop block cart and cart controller

We have followed this guys tutorial on changing the prestashop add to cart animation
http://nemops.com/better-prestashop-add-to-cart/
However, now the problem we face is if someone adds a quantity to the cart that is greater than the quantity we have in stock. The popup box still shows and we still get the default prestashop error "There isn't enough product in stock".
We thought that in the ajax-cart.js where we added the new code that we could run and if statement against the quantity added and the quantity in stock. If the quantity added is greater than what we have in stock then do not display the box. We are stuck on how to check the quantity added vs the quantity in stock.
Get the quantity you have
var availableQuantity = {$product->quantity};
and then dissable add to cart button if available quantity is less then added to cart value

Categories