How to remove particular Billing Address Field? - magento

I'm newbie on magneto. I want to remove Billing Address Field, For example Middle Name/Initial.
when Go to Magento Admin Panel. In Admin Panel Sales ->Orders and Create New order and select customer. In Billing Address section. I want to remove red portion according to following image.
Please see my snapshot.

Middle Name / Initials field can be removed from admin panel.
Go to System > Configuration > Customer Configuration > Name and Address Options > Show Middle Name (initial) and set value to No.
Important: There is a know bug of Middle Name / Initials field shown even after setting value is set to No. To fix it, set value to Yes, save settings and than set it back to No and save it.
Bug most commonly occurs when Magento is updated to version Magento CE 1.9.2.1 and later.

Related

Change default stock in Magento2

I am trying to change the default stock in Magento2 but i can not find any option for doing that. What i want to reach is that i want to equalize the attribute Quantity and Default Stock.
enter image description here
In this picture you are able to see the option to change the quantity.
I have tried it already by increasing the number of articles that are on stock, but nothing changed. I was thinking that Quantity - Notification Number = Default Stock.
enter image description here
But as you see here the default stock number is still remaining at 1.
The default stock and the default source are hardcoded. On the edit product page, under the "Sources" section, you can see the assigned sources list that was reset by the import process most likely. This data is stored in the inventory_source_item database table. Make sure that your import doesn't overwrite sources.

Show notification when selecting country x when adding address in Prestashop 1.7

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.

Observer on Product saving for name appending

I am creating a small module. In which I have built my own tab in System- Configuration, Name "ZARA" which consists of a textbox. I can enter words in the textbox and save the configuration.
Question
Now my problem is, I want that the module should append the word entered in the configuration to the product name through an observer whenever a product is saved.
for example, I entered "Test" as a word in the configuration. I then open a product in the backend in product management, which is called "RedShirt". When I save this now, it's called "RedShirtTest". If I save it again, it's called "RedShirtTestTest". Thank you in advance if anybody can clear my issue. I'm totally new to Magento. Please answer regarding Magento 1.9.

magento show "Sign up to get notified when this product is back in stock" link for simple-associated products

How can we display the "Sign up to get notified when this product is back in stock" link for associated products of a configurable product.
Say, we have a T-Shirt (a configurable product) and we sell it in 3 sizes - Medium, Large and Xtra-Large (simple - associated products).
When the Large size goes out of stock, how can we make user subscribe for it for notification when it is back in stock.
Please note I have already set this setting in admin:
System > Configuration > Catalog > Allow Alert When Product Comes Back in Stock - Yes
I noticed that the url for this alert is like (it is for one of the simple products in my store):
http://localhost/mystore/index.php/productalert/add/stock/product_id/1/[some key]/[some key],,/
Is there any way we can call this url directly, passing the product id of our associated product in question? If so, what about those keys at the end of the url?
please guide.
thanks
I added this link beside the out-of-stock associated product:
http://localhost/mysite/index.php/productalert/add/stock/product_id/[associated_product_id]/uenc/[any_key]/
For e.g.
http://localhost/mysite/index.php/productalert/add/stock/product_id/17/uenc/MTM0MzcyMDk0Mw==/
It does my job.
Only thing is, after successfully adding the alert record, it redirects to home page, instead of same page as in normal case.
This is due to [any_key], if we could somehow encrypt current page url [the any_key] just like magento does, we can have it redirect to same page also, after successful saving of alert record.
Any ideas?
Thanks
Ok I got it finally!
The uenc key [any_key] is actually base64 encoding of current url.
So with the help of https://github.com/carlo/jquery-base64, I did:
var encodedUrl = $.base64.encode(window.location);
var redirectTo = 'http://localhost/mysite/index.php/productalert/add/stock/product_id/[associated_product_id]/uenc/' + encodedUrl + '/';
Hope this helps!
The Magento way to get the url would be:
Mage::helper('productalert')->setProduct($_product)->getSaveUrl('stock')
Magento already avails the functionality to set out of stock from admin panel, unfortunately it is limited to some instances therefore we can not set this from admin panel, either way you can do it in code as above mentioned but its a manual task and can not be done again and again with links.
So i think its better to use ready made extension in case you have specific requirement to set product stock alert functionality for customer and they can subscribe for it.
Here is the well managed extension for Magento 2 which can help you to set Product alert and sign-up / subscription functionality with many more admin manageable features.
Link to Out of stock notification extension for Magento 2 - https://www.mconnectmedia.com/out-of-stock-alert-magento2.html

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?

Resources