CS-Cart price not recalculated with multiple product options - cs-cart

I am creating a new cscart store and am running into problem with products that have more than one option, which doesn't calculate the price properly. On this example page, I have a product for which the price should change based on the meal plan and the size. I can get one or the other to work but not both together. Thus far, I have realized that, both options are calculated from the "base" price therefore when the price is adjusted based on the meal plan, the size doesn't do anything because the "base" price is, in theory, still set to $0.00. Any ideas on a way to set this up?

There are two possible ways out:
1) If you set the price for one meal, for example, then both options will work, because you will have the “base” price.
2) If you set the second option in dollars, not in percents, then it will also work.
--
Maria Tainkina
CS-Cart team

Related

Shopify adding offers to items when checkout to change the total order price

I am looking to be able to add offers to my items in Shopify. E.G if a customer orders 3 items then the total order price would get set to something like $15 but if the customer orders like 5 items the total order price would be set to something like $20.
It would also need to work if 4 items were added to the checkout so the price would come out something like 3 items for $15 + $5.95 for the 4th item and so on for the other items.
Any help is appreciated.
Each variant in your Shopify store has a fixed price. At this time, you are unable to change what you charge for that variant item on an order-by-order basis.
The popular way around this, is to create multiple variants of the same product, with different prices for different quantities.
Example:
product: widget
variant: widget-3-or-less price: $10
variant: widget-4-to-10 price: $8
variant: widget-10-or-more price: $5
Clearly you don't want people to be able to add whichever variant they want, or else everyone would simply add the cheapest one without any regard to the required quantity. So you need some sort of backend application that will safeguard the variant selection, and automatically determine which variant should be in a customer's cart based on their desired quantity, and adjust their cart accordingly.
It's a lot of work to code from scratch. Completely possible, but, in most situations it is more viable to use a 3rd party Shopify App to handle it. In your case, the "Quantity Breaks" app by Bold Apps would work great. It has all of that functionality already made and ready to go.
https://apps.shopify.com/quantity-breaks

Configurable product based on A LOT of attributes? Am I doing this right?

I have a customer who wants to use products in the same way configurable products works, pretty much.
The problem is that the customer would have to use a lot of different attributes. Let's say he's selling custom sized papers (for some reason haha), these comes then in... let's say maybe 30 different combonations of X x Y mm (10x20mm for example).
Then another product would also use mm, but no the same. Let's say he is also selling envelope in customer sizes, these does not match the sizes of the papers so I need another 50 combinations of sizes for this product.
Is this how it usually works? Or am I using wrong product type / wrong way of doing this?
Do Admin configuration for simple product as per below screenshot
customer will see
For this type of problem if you use configurable product it will be very confusing and you will find difficulty to adding this type of product using configurable product. As you have 30 to 50 attributes.
Best option for you would be simple product with custom option.

How do I find a Magento products primary category

I am using Magento 1.6.2.
I need to find an easy way of checking which category is the "default" category for any given product, where multiple categories have been assigned to that product.
The reason for this is as follows:
I have different discount amounts available on different categories in my store.
Where a product falls into two categories with different discounts applied, the highest discount should be applied to that product, but if that product has been added to the system (created) with a default category that has a lower discount, and then afterwards added into the higher discount category as well, the higher discount level is not being applied when that product is purchased.
If, however, I add the product to the higher discount category first, and then to the lower discount category afterwards (so the product appears on my website in all the right places), the correct (higher) discount level applies to that product.
I can only assume, therefore, that the default (or primary, or first, however you want to label it) category is the one that determines the outcome of the discount level to be applied to it. If this is wrong, then I need a lesson in understanding the mechanics behind this to see where I have gone wrong in the overall setup of this system...
If my assumption is correct, then I need a way to determine which category any given product (using the SKU) has been assigned to first, to ensure that the correct discount can be applied to that product.
I hope I have explained that clearly enough!
Does anyone have any suggestions. I have been unable to find information on this regardless of guessing specific search terms. The only things I can find are related to general category retrieval, and not this very specific task I need.
Cheers!
Im afraid your assumption is incorrect. Magento has no concept of a 'primary' category for a product. It only knows the product is in category id(s);
1, 12, 234
etc. The id's are stored numercially with no idea of which category might be more important than another.
What you could do instead is create a custom attribute and enter the id of the category you want to treat as 'primary' and retreive this attribute value when working out whether to give more discount or not.

How can I set up a shopping cart price rule that excludes products with scheduled dates for special price?

I have two types of products:
A product that is on sale all the time and uses the special price field with no scheduled dates.
A product that is scheduled to go on sale once or twice a year using special price field and scheduled to and from dates in the future.
I have a coupon that MUST not be applicable on products whose special price field is active, whether by virtue of today's date falling within the to and from date fields, or by simply having its special price field filled in.
I can easily solve for product 1 - add a condition excluding anything with a special price greater than .01.
BUT that doesn't solve for product 2 - I do not want to exclude product 2 when the dates of the special price on product 2 have not been reached yet or have expired.
I do not want a manual solution (i.e. manually add products to a sale category when on sale, remove when not on sale).
I'm thinking of creating a cron job to make changes on the fly in a semi-auto fashion, but that seems desperate. Is there nothing I can do here to automate this based on special price dates?
You can do that using the Magento Admin.
First in admin go to Catalog -> Attributes -> Manage Attribute -> Look for "special_from_date" and "special_to_date".
Click on it, look for the option "Use for promotion conditions" set "Yes"
Now your special_from and special_to date will show up on your cart promotion rules section.
I'm dealing with exactly the same need.
For now, I'm developing a cron job: it run every day at midnight andupdates the rule end_date with today(). It's hacky, but so far looks promising and it's way easier and more manteinable than messing with mage internals.
Edit: also see here https://magento.stackexchange.com/questions/210006/catalog-price-rules-with-date-as-conditions-cannot-possibly-work-due-to-strtotim

Magento extend IsSaleable with custom stock value

I’m looking to accomplish the following. My shop only has products online which I actually have. I would like to add my suppliers stock to my site, so customers can see and buy the product, but they will receive notice about a delay in shipping.
I have used the shipping days option mentioned in this thread (http://www.magentocommerce.com/boards/viewthread/59143/P0/). This works perfectly.
I would like to extend this line.
getData('days_to_ship')): ?>
to
getData('days_to_ship') && $_product->getData('bu_qty')>1):?>
The attribute name bu_qty is the stock value of my supplier. I would like to use this value to specify if the product is available at my supplier or not. So, if I do not use this field (smaller than 1), the product is supposed to be Out of stock.
If I do use this bu_qty value and set is to the number 1 or higher with also the Days to ship it is supposed to show a message that the item is available for purchase and that it will ship in x days.
Anybody can help me out with this one ?

Resources