PrestaShop 1.7.x multiple prices - php

I'm currently writing a module for prestashop to have 3 basic prices for customers(retail, small wholesale, big wholesale), each applied depending on total cart price
(if totalPrice>1000 apply small wholesale, if totalPrice>2000 apply big wholesale)
I have some idea how to implement but i want to know
a)how is price being calculated and stored in presta
b)how to add additional fields into pricing of product to enter different prices
Also, i read that it should be implemented using hooks, but i dont understand how exactly they work

Related

Prestashop: Custom vouchers based on weight (PHP)

I'm working in a prestashop store for a client. He wants to focus on the clothes weight to set the price so I've modified all the tpl files needed to display this attribute accordingly. However, I'm experimenting some issues to find an approach to generate custom vouchers based on the total cart weight.
The idea is when a customer reach, in example, 0.5 kg, he or she automatically gets a discount code. Difficult here is that PS/Settings only set vouchers based on price rules. I thought that maybe I could work with a php or tpl backend file but vouchers are related with the database. Taking all in consideration I'm wondering if some of you have tried this kind of modifications and could advice me about what files I should be working with and what kind of code functions a I will need.
Thank you in advance!!

Magento same product with multiple source costs various vendors but with same sale price?

In my magento shop, the same products will have a slightly different cost based on some cases but I sell the same price.
Question: how do i set up my product so it has multiple source costs?
Idea Question: Is there any way I can fill in the products cost after people placed an order, also including the amount and the provider's name.
What you do is set up Tier Pricing and Customer Groups, so that you have a different price structure since thats what your wanting. To add a price later would be maybe something something like using an observer class Magento : how to change item price when adding it into the cart

Magento tier pricing using configurable products and custom options to display pricing table

I am developing a website on Magento and the layout/functionality i would like to achieve is: http://route1print.co.uk/printing-products/business-cards-450gsm-silk-?productTypeId=3#?pt=3&lt=5&ps=57&pat=40&prt=1
The ideal goal functionality is to display a table as such showing different pricing of the product based on quantity and delivery date.
I have tried to achieve so using the standard magento installation. I have looked around the web and the closest tutorial/guide i have seen is http://www.code4business.de/tier-prices-for-magento-custom-options-en/
What i believed would have achieved the desired functionality was using Magento tier pricing based on the quantity and using the custom options to defer the prices for each quantity dependent on the end user's chosen delivery. However, Magento's custom options by standard doesn't allow you to add different tier pricing custom options.
Following the guide i have attempted to use both extensions and following the code written by the developer without success.
I am happy to switch the project unto woocommerce if woocommerce is easier or offers the functionality in order to produce a pricing table as such using tier pricing/varients.
My question is, weither Woocommerce or Magento, what are my options to developing a pricing table as such?
Thank you in advance
Kieren.

I need to setup a Magento Site, with two seperate websites, the same products but different prices/skus

I need to setup a Magento Site, with two seperate websites, the same products but different prices/skus.
Right now I added in two custom attribute fields for each product with the other company sku/price. I have a flag that chooses which product sku/price to show.
Is this feasible with Magento or am I going about this the wrong way?
You can give a product a price for each website. Yes, SKU are global but as Mike stated, if you want to keep track of your stock you should follow magento logic on this.
Add your product then set a different price for each of your website.
If the product is sold either way stock will be changed accordingly and you won't run into more problems.
just my 2 cents on this.
Magento is designed so that each product has only 1 SKU. They do this so that you can use Magento to manage stock on a SKU basis. If stock is not of concern to you, then your way will work fine. However, the correct way to do this would be to have two different products.
If the two products are identical, but you just want to determine which store they came from, there are other ways to do what you are trying to do.
I'd say you're doing it wrong, but that's really just my opinion. You can go about it whichever way you choose!

module for Ubercart to run a discount per product in Drupal?

Hey guys I'm looking for a module and combination of modules to let me add items to Ubercart with discounts. How did you apply them?
These items need to have their own discounts that are not applied to the entire cart, just that product. They should also not require user input to get.
The discount will be based on the quantity of the product added. That is for example:
at 1-10 items, a 5% discount
at 11-25 items, a 25% discount
and so one
So, I can have two or more products all having different discounts based on the number of each. For example:
3 apples 15% discount
1000 nuts 50% discount
I have tried a few options and had no luck, including http://drupal.org/project/uc_discounts_alt, however it is not working with Drupal 6.2.
Also, I'm ok with having to write php to get this to work so if there is something that will let me do that then awesome.
P.S. I'm new to Ubercart but I do not think this is a built in feature
Have you tried uc_coupon module ? I think it's going to help you a lot. ;)
I had this same issue once.
The first time I did it, I utilized uc_get_cart_contents, hard coded my discount conditions, and adjusted the price accordingly. Works, but, doesn't scale.
The second time, I used uc_coupon module. Saved time.

Categories