Prevent Magento Catalog and Cart Price Rules from stacking - magento

So, the sites I'm running are running into a problem.
Site A has a sale category with a running 15% off.
Both sites have a coupon code that takes 10% off, they use the same code
The coupon excluded anything in the sale category.
The problem is the coupon refuses to apply to products in this category, regardless of the site. So if I use the coupon on Site B, and the product is in Site A's sale section, it won't apply.
I tried resolving this by setting the Catalog rule to stop processing further rules and setting up the priorities. However, this doesn't appear to have worked, as the coupon can still apply regardless.
Since both sites use the same code for their coupon, I can't recreate it as a separate rule on the other site. So I'm left with trying to make the rules stop stacking. Does anyone know of some way to do this?

It's kind of a hack, but I did figure out how to make this work. I basically just created a dummy cart rule using the same conditions as the catalog rule with a higher priority.

Related

Magento 1.9 Custom Math Pricing / Simple Product Issue with Price

I've installed an extension, Custom Math Pricing by Mico Solutions, and I am experiencing 2 issues with my site now.
Issue 1: When I customize the product, the price is updated correctly on the product page, however, when the product is sent to the cart, a portion of the price is missing (length x price per foot). I checked in the database to look for the price and could only find records of the wrong price so the price is only showing for the product page. The portion of the calculation that is missing from the price includes an attribute which is set as a variable rather than custom options. The custom options calculate perfectly.
Issue 2: When I customize a simple product and add it to the cart, I cannot go back to that product page and customize it a second time, the price remains fixed on the "base" price. Let's say the product has a base price of $10.00. When I customize it, the price stays at $10.00 but is different in the cart. I have to delete my browser cache and cookies in order to customize it again and by doing that, my cart is emptied.
So my question is, where in the code can I find the pricing that is being sent to the sales_flat_quote table in the database. Additionally, how can I debug or correct the issue of customizing a product a 2nd time?
It seems like you've got an issue with conflicting extensions. Your best bet is to go to the Admin modules section (Admin > System > Configuration > Advanced > Advanced) and disable anything else that appears to deal with product pricing. Reset the cache and index and try again. I am somewhat familiar with this extension and it's not compatible with configurable products... make sure your products are simple product types when adding products.

Magento sale watermark

Due to being a new to Magento world, I have limited understating of its coding pattern.
I have created a cart price rule which works fine. However now I want to show the sale watermark image on product listing page making product on sale more prominent for customers. This sale watermark must not be displayed when sale period is over.
My approach is as below
Modify the cart price rule form to let admin to upload corresponding sale water mark. Then update list.php to determine the rule and then add sale water mark image to product list.As cart price rule specify the sale dates, I am assuming after due date rule would become inactive and image would not get displayed.
However before i start coding for it, I am wondering if someone has easier approach.
This extention will probably save you alot of time.
I have bought from them many times and they are great.
AheadWorks On sale Extention (affiliate link)
if products are on sale it means you are using special price??
if yes than you can use special price and follow these simple method to achieve what you want
http://www.pauldonnelly.net/magento-display-sale-icon-if-special-price/

Magento coupon code doesn't calculate anything

I have a problem with magento coupon code, I've set up the shopping cart price rule for 10% off all products, but on checkout, when I enter the coupon code and click apply, the page refreshes but nothing is deducted from the price, can anyone help me solve this issue please, I've been looking around for a solution for a few days now, still no luck,
Thanks in advance
First of all make sure that in Rule Information it's Active and that all main customer groups are checked, and that the from and to dates are covering today (as you are testing it today).
You don't need any Conditions for a blanket 10% off rule but your Action tab should have;
The Apply set to 'Percent of product price discount'
Discount amount set to 10.
Maximum Qty and Discount Qty both set to 0.
And the 'Apply the rule' conditions all blank.
Sorry if this all seems obvious and isn't helping, I have a store with a working 10% off everything and these settings all make it happen. Best of luck.

Magento: Shopping cart price rule gets applied, but discount not subtracted from subtotal

I have created a shopping cart price rule in my Magento store (version 1.4.1.1), and it seems to get applied without issue on the frontend, but the discount isn't actually reflected in the subtotal or final total. The original item price is $45.00, and the discount should be $35.00, making the final price $10.00. Here are some screenshots of the setup. (Sorry, because I'm a new user it won't let me post images directly in this posting.)
http://imgur.com/a/hdYDb
Main rule page
Actions page
Cart showing that promotional code was applied
Reviewing order (last step before submitting order)
This particular item has some custom options set, which set the pricing for four individual options. The price for the product is $0.00, and then each option has it's own price (I didn't set this part up, so I'm not sure if I'm missing something from here too). Here's a screenshot of the product custom options page: http://imgur.com/uO9HG
Any thoughts? I'm fairly new to Magento, so it's possible I'm just missing something obvious. Thanks in advance for any help or guidance!
I actually JUST figured out what was going wrong, or at least, I figured out a solution, though not sure exactly why this was affecting the shopping cart price rules. You're right that I wasn't even able to get a simple price rule to work - it simply wasn't working no matter how I changed the rule. Anyway, while working on another issue, I realized that I was missing the Subtotal/Grand Total box on the front-end of the shopping cart (I installed a clean copy of version 1.4.1.1 on my localhost, which is when I noticed it was missing from my live site). When I re-enabled the Subtotal/Grand Total box, the rules started working again. (I suppose now that Magento has a place on the front-end to show the discount, it actually applies it, whereas before it would just do nothing.)
So, to re-enable the subtotal/grand total box, in the back end, I went to System > Configuration > Advanced > Enable the Mage_Tax module. Again, not sure why it was disabled in the first place, and I'm not sure if this affects anything else on the site, but it's been up for awhile now and I haven't noticed anything awry. Here's a screen capture of it working: http://i.stack.imgur.com/kjl6S.png
I think the problem comes from using SKUs with your custom options combined with restricting your price rule to the product SKU. Magento combines them using a hyphen - place a test order to see if this is the problem.
The SKU in a test order I made comes out something like this;
[ORIGINAL_PRODUCT_SKU]-[CUSTOM_OPTION_SKU]
At least, that's the result I'm getting from version 1.5.0.1
The quickest solution I could find was to match the rule on the product url key rather than SKU. It isn't the most intuitive solution, but since you wouldn't change the URL on the product (I hope), it will work where SKU's with custom options fail.
In version 1.4, the URL key should be available to choose instead of SKU already. So you can just select url key instead of sku and insert your product's correct url key in your shopping cart price rule. Just replace "SKU is ..." with "URL key is ..." inserting the correct url key for your product.
In version 1.5 I had to enable "Use for Promo Rule Conditions" on the url_key attribute like this;
Log in to Magento admin area
Navigate to Catalog > Attributes > Manage Attributes
Locate the Atrtibute Code "url_key" and click to edit it
Change "Use for Promo Rule Conditions" to Yes
Save the changes
you may need to reindex the Product Flat Data index at this point
Then I could use it in my price rule.
Had this same exact problem on CE 1.9 running PHP7, applying the Inchoo "PHP 7 compatibility extension for Magento 1" solved the issue!
https://github.com/Inchoo/Inchoo_PHP7

Magento: adding catalog price rules to options of a bundle

I've looking around and couldn't find how to do this.
I'd like to be able to set a catalog price rule for a specific option of a bundled product. Basically I want to set the price of any selection from option1 to be $0 in that bundle (but keep the price the same for that product if someone just adds the product to their cart from outside of the bundle). is there a way to do this that i'm missing?
The second approach I was thinking was to set the price to $0 of all those selections for that option (i saw a post on here on how to do something like that programatically) although without testing that that works, it seems like it wouldn't.
any ideas would be welcome.
This is something that Magento does not do by default. Additionally, beware of trying to change this through cleverness, as Magento has significant validation for prices once items are added to the cart (e.g. it will try to recalibrate them to the database on every page load). It sounds like trying to restructure the flow so that you aren't trying to use the shopping cart rules might be the best bet here. Would it be possible to use some other mechanism to give discounts, like a coupon code?

Resources