Show notification when selecting country x when adding address in Prestashop 1.7 - drop-down-menu

I'm using Prestashop 1.7.6.8. When adding an address for members or those who want to place an order without being a member, for example, I want to show a warning on the screen if they choose Germany. Something like an information note. How can I do that? I'm new to Prestashop. Which file do I need to make changes? Thanks.

Related

Custom Fields in Virtuemart allowing user to enter amounts

my question is probably simple for most but its troubling me and ive been googling for sometime now.
Im trying to create a product on this following website for a client
https://www.anigmabeauty.co.nz/index.php?option=com_virtuemart&view=category&virtuemart_category_id=1&Itemid=235
I want to create another Voucher called $100+ Gift Voucher with that voucher set at $100.00 obviously. when the viewer clicks on this I want to have a "Enter Amount" box where the viewer can enter the amount they want to pay for a Gift Voucher. for example if they wanted a $210.00 Gift Voucher, they simply enter $210.00
I managed to do this with custom fields but it then adds the amount entered (eg. $210.00) onto the $100.00 which I dont want. If it is possible I would like the $100+ Gift Voucher set to $0 dollars and whenever the viewer types in the value they want (eg. $210.00) and then go to the Shopping Cart the Total amount will be $210.00
Any help would be AMAZING
Thanks
I think you can't exactly do this with current VM without any core files modification especially cart helper and related files.
But i think you can achieve this in another way .like you are planning to provide a text box for entering the amount in front end . instead of that you can provide a list box with predefined values.This you can achieve by using the VM custom fields options .
There is one option for making a list of values for custom fields.
Hope this may help you..

Magento, add some text beside item title

I am new to Magento but willing to learn. :)
For the current project we need to add the Serial number next to the purchased item. Serial should be added in the invoice (PDF and html). It doesn't need to be new field, it is enough to add it next to the item name, or under it.
I have the serial number already saved in the DB, so the only thing I need is to find the html file to modify and there call the SQL statement to get the serial.
Please I could really use any help where to locate that file and what to change.
Thank you!
Try template/sales/order/invoice/items/renderer/default.phtml for frontend display
The template folder can be either in /app/design/frontend/base/default/ or in the package/theme folder of your store.
For backend display use /app/design/adminhtml/default/default/template/sales/order/invoice/view/items/renderer/ folder, which contains two template files: configurable.phtml for configurable type products, and default.phtml, for other types

wishlist integration in joomla

I am somewhat of newbeeeee to the whole Joomla/Virtuemart world. I am trying to implement "my wishlist" module in my joomla 1.5.26 . I have searched in google also but its not free.
My logic is like:
I have a list of products, along with button "add to wish list". If a registered user click on that button then that product id and category id have been saved in jos_user table, where I have added one new field called "wishlist".
Now up to this is okay. Now problem is to fetch those product in one page(lets say page name is my wish list), which are only in that list. Is there any file where I can change the query for that particular page(my wish list). If so please help me. Its urgent.
Thanks in advance.
If your wish list is a module rather than a component, then finding the required file to change the code shouldn't be too hard. I'm not quite sure on the file structure, but it will most likely be in something like helper.php

product customization with extra price in magento

I am using Magento for my online store. Now i need to add a extra feature, throught which, customer can choose a custom text that needs to be engraved on the product. This feature must be available for only few products, so i have added a yes/no dropdown custom attribute in the "manage product" section. If yes is chosen for a product, i need to show a text box in that product details page in the store frontend.
The customer can enter the custom text in the text box, which needs to be saved and shown in the order invoice. And a extra fixed charge needs to be added to the product price, when this feature is used by the customer.
Does any community module available for this feature in magento or Do i need to create a custom module to do this, if so please guide me in carrying this out.
Thanks in Advance.
This feature is already available.
Create a new product!
Open the Custom Options Tab
Add a custom option
Give your new option a title and select field as input type
Now the attributes for this new options get displayed
Add a fixed or percent price to it
Also you need a SKU for every new option so that the options are displayed in the order process (invoice etc)
Done
So if a customer fill in this field the additional price is added automatically.
I hope this helps further.
No need to add a yes/no box, just add an text field option to those specific products. Did i miss something obvious here?

Magento Custom Field Defines Product

I am running a Magento store where someone can buy a personalized item with their name on it. Under the product, you see "Name:" with an input box where they can fill out their name. They click "Add to Cart", it ads it, I fill the order and everyone's happy.
But, in order to purchase another product with a different name, they have to go from the cart back to the product. Its a mess.
I'd like there to be a button under the "Name" field that says "Add Another". Upon click, it pulls down another field for "Name:". Now we see two name fields, I add "John" and "Joe" in the first and second fields, then click "Add to Cart".
In my cart, I now see two products added. One with Johns Name, and one with Joes.
Any and all help is greatly appreciated. I'm a Wordpress guy trying to figure out Magento!
This is not really a simple addition, but basically you'll need to modify app/code/core/Checkout/controllers/CartController.php to call addProduct for each of the items in the form. This isn't really a trivial change, as you'll have to rip apart that method to make it load the products in sequence.
Another approach would be to use an event (such as checkout_cart_product_add_after) to keep track of when an item is added and see if extra parameters were passed, adding more items as necessary.
Alternatively, you may be able to use related products to accomplish this (since they are added to the cart as well). I haven't looked at how to approach that one, but it may be worth a look.
Hope that helps!
Thanks,
Joe

Resources