How to add fixed Prescription charge in Prestashop - customization

How to add fixed Prescription charge in Prestashop
Something similar to
http://www.vusionglasses.com/58-men-women-eyewear-endis-eyeglass-frames-bold-rectangular.html?id_combination=46
What Vusionglasses is doing is passing additional cost as per prescription and then in controller adding it to the product price.
I'm not able to figure out exactly where should I put my additional price code?
in my site. There are 4 packages and user has to select one and that much additional cost should be added to product while adding it to cart.
Adding this using combinations and inbuilt features is impossible for all products!
please help.

Solved this problem by
1. Creating a customization field for each product while importing.
2. Create a custom form on product page as per requirement.
3. Before adding the product to cart, save the custom form data through Product Customization field.
This will add the customization throughout the shopping process.

Related

How to add custom fields to the order invoice - OpenCart 2

I know that in OpenCart 2.3 you have the ability to add custom fields in the registration process. I have added 3. I see that they are showing up in the Order Details section of an order, but I need them to show up on the printed invoice too. HELP :(

Modify custom option product detail page

we need product custom option based on length and price. we need same requirement of product option according following site :-
"https://www.petflow.com/product/taste-of-the-wild/taste-of-the-wild-high-prairie-dry-dog-food"
please let us know how can do it in opencart
Thanks

Spree 3.x -Create a custom promotion rule

I wanted to create a custom promotion rule to check if User buys an item again, they will be discount 10% of item’s price. (Admin able to config this in Spree's CMS)
Ideally, in user order page user would see the “Buy again” button, the item will be add to cart and the cart will be discount 10%.
Anyone can tell me how to do it, there is any extension/code that I can reference.
Thanks in advance!
I am not sure about your needed rules but you can define custom promotional rules. Go through with the following document:
https://guides.spreecommerce.org/developer/promotions.html

Opencart products page with special price

I want to have example.com/special and there list products with special price, what is the best way to do that ?
Requirements: 1.
have url /specials/
use category.tpl template
My idea: create new page in information, in controller send parms to catalog/category to fetch specials products, maybe exist more clear way ?
Special page is available by default in OpenCart. When You will set “old price – new price” for product. So, It product will automatically added in special page.
You can see in default OpenCart special page demo. Click Here
For example a product may have cost $200, but using the specials option in OpenCart you can set the price to $150. That way customers see the “old price – new price” difference.
Here’s how to set up a specials in OpenCart
From your OpenCart admin interface, hover over the Catalog tab and
click Products.
This is the list of products you have on your website. Find the
product you want to discount and click Edit.
Click on the Special tab.
Click Add Special in order to fill in the information for your
special price. Again, you have a number of options almost identical
to the discount page:

How can I implement adding multiple objects with Django form?

How I can go about adding multiple objects from a single form with Django?
For example: if I have a sales form which stores sold products' register.
Imagine the form:
datetime: [_____________]
customer: [_____________]
product: [______________] ---> How should I implement adding multiple products
in the same form?
cost: [_________________]
Save (button)
Hint: it is just a question, if you have some ideas tell me please because I don't know how to do it.
thanks
One way is to use a Formset. Formsets you may have seen, for example, in Django admin for displaying multiple related objects as inlines.
Another way could involve AJAX, example solution:
“Added products” is a simple <ul> list with products added to order
“Search product” is a plain text field, where user enters product name or SKU
User input is sent via AJAX to the server, which returns a list of relevant products
These product suggestions are displayed to user
When user clicks on a product name, another AJAX request is made to associate given product with the order
After request completes, the “Added products” list is refreshed via AJAX, and newly added product appears there
This would require that you first create a temporary order to which you could later attach products via separate requests. Formsets don't have this requirement, but personally I haven't used them a lot, they look a bit cumbersome.