Magento 1.9 Custom Math Pricing / Simple Product Issue with Price - magento

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.

Related

Products not showing up in Magento search, but are on website

I'm having major issues with my search function in Magento, the products are showing up in some searches, in the main categories, but when I search for the specific product model number (which most customers will search for).
For example searching for a YAMAHA PSR-E233 61-KEY PORTABLE KEYBOARD if I type in Keyboard it comes up under that category, but if I search 'PSR' which most people would search, it says 'no products to show' - which is areal issue for our site.
Apologies I am new to web development in generally and am learning Magento, I have spent all afternoon searching for this and have not been able t fix it, I have tried all the obvious settings in Magento that I have come across, such as
Please check following settings are done for your product
The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock.
If the product is set not to track stock, it still need to have a stock Quantity and be set to In Stock.
The product must be assigned to the target Category.
If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
You must refresh your “var/Cache” & rebuild all indexes from admin > system > index management
Any help would be greatly appreciated
Thanks
You need to set the visibility attribute on the product to catalog, search. That will make sure the product can be found.
You also need to set which attributes are searchable. Go into the attributes admin page under catalog. Then find the attribute you want (SKU I'm guessing). Inside that change the Use in Quick Search and Use in Advanced Search options to Yes

Limit cart to 1 product per attribute/type - Magento

Our company sells pharmaceuticals online and by law we are limited to how much of a particular drug a customer can purchase.
For singular products with one brand this is easily controllable through default Magento functionality, my problem arises when we have different brands of a particular drug.
In a nutshell I can currently limit a customer to 1 pack of paracetamol from brand A but there is nothing to stop them getting another pack from brand B at the same time.
I would like to be able to check the cart for products with a particular attribute and limit them to 1 per cart. Ideally this would be when the customer clicks add to cart and the message would be displayed via the default Magento alerts that we currently have.
EDIT: I think the easiest way to solve this would be to check the SKU codes currently in the basket when adding a product to the cart. If there is a match, Throw up an error else add the item to the cart.
I think this link will help you but you need to modify as per your requirement. http://ceckoslab.com/magento/magento-check-if-product-is-in-cart/..
This link is to check the cart whether the same product is added or not? So modify this as per you requirement
You can set maximum allowed quantity in cart from admin panel. System->configuration. From left tab see catalog->inventory. Set Maximum qty allowed in shopping cart to 1.
If you want to add check on whole cart. see this paid extension

Associated Product not showing the different price

I have just added a product and everything works fine. The product is a top with different attributes: size and color.
However I want to have reduced price on one of the different colors like in a sale, so I went into the associated products section and changed the price. However, whenever I go to the website and click on the color of the reduced price top, it still shows the original price and not the one I just changed.
How can I get it to show the price I changed it to?
Out of the box the only way to do this is via the price offsets for each configurable option under "Super product attributes configuration" as shown in the attached image:
Otherwise, you can use an extension such as Simple Configurable Products http://www.magentocommerce.com/magento-connect/simple-configurable-products.html
Go to system > Index Management and reindex Product Prices data
It sounds like you are using a configurable product with associated simple products. As far as I'm aware Magento only refreshes the product price for bundle product types.
I have seen a lot of people recommending this module.

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

Product options and Add To Cart button don't appear on some pages in Magento

I have this issue where on some products the Add To Cart button and product options do not show up on the page. I have traced the code and have determined the problem is with the isSaleable attribute.
Tracing the code it seems like it should be returning true and if I hard code true in the isSaleable function everything shows up correctly. It seems to only be doing this for configurable products. Looking at the code and it looks like to me that the Config product bases the isSaleable on whether the product is enabled or disabled.
My question is, am I missing something else here and what would the repercussions would be if I were to just make that function return true all the time? We do not really use stock tracking.
It's been a while since I've worked with Magento CE, but I think isSaleable is tied to the stock management system. I think you need to check the stock options and mark it in stock (with, of course, the product set to enabled). I would avoid hardcoding any of the functions if possible.
Edit: Did you try Inventory -> Manage Stock to "No" ? This is kind of a no-brainer, but products are set to be disabled by default, so General -> Status to "Enabled" is also required.
Products not displaying and/or displaying "out of stock" is a common Magento "gotcha".
To help myself and others troubleshoot this frustrating issue, I've compiled this checklist from this excellent SE answer:
Magento products will not show in category
and have added #7, to address a possible Magento Enterprise Edition cause of the hidden / out of stock products problem.
The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock. If the product is set not to track stock, it still has to have a stock Quantity and be set to In Stock.
The product must be assigned to the target Category.
If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
Check Admin > Catalog > Categories > Catalog Events - make sure there is not a "closed" Catalog Event applying to your Categor(y/ies) or Product(s)
Refresh your Cache / Indices.

Resources