i am struggling with magento add custom function for checkout method.
how to get popup messages after click the "onepage-guest-register-button" in checkout method.Also need to send email to the vendor with the selected product id in magento.
I am new in magento,any one please help to me.
Thanks,
You can customize login template here:
[Magento root]/app/design/frontend/[your theme package]/[your theme]/template/persistent/checkout/onepage/login.phtml
or here
[Magento root]/app/design/frontend/[your theme package]/[your theme]/template/persistent/customer/form/login.phtml
If you want send mail when someone add product to cart (or something else) you have to check about observer (events handler) on Magento.
I am new to wordpress, just worked on 2 sites and I have new challange! now I have to create custom post types as a product because I already have old system with me. I wanted to convert existing offline course products from core php site to wordpress for that I have to create courses as custom posts because these courses will be in two semesters and they have conditional displays according to date.
So can you please suggest me how my approach should be ( I am thinking of creating custom post use it as product and list it with add to cart button and connect with any available plugin which will handle rest of the checkout process with admin functionalities and then I will build the other things arround it )
Note: Actually I am worried about how to list the products/courses per semester if semester is ended then just list them otherwise list will have add to cart function, how can I add the late fee for registration (if applies) and one time registration fee, also I need to add donation amount separately can this be taken care by anything common.
Thanks and Regards
If you will use the woocommerce then you should import your courses as products (post type).
That will make every course you have as a product then you can update the postmeta of this product to the various values of this product like price
So first step is install woocommerce plugin then loop the courses you have on wp_insert_post.
After that in the same loop you should add post meta for every post you inserted.
I am building an E-Commerce Website with Wordpress using the WooCommerce plugin. Trying to add a feature for customers to add a photo to their profile page. I want this to be manadorty so if the client did not upload photo, I want it to be requested at the process of checkout.
How should I go about this, I been looking all day and can't even find the right file that I am supposed to be editing. Thanks in advance.
You need :
Add a form in my-account.php (Check woocommerce_before_my_account hook for this)
Create a custom code to save the file in wp_usermeta table (Check add_user_meta() function ).
Check woocommerce hook after_woocommerce_pay to check if there is a photo associated to current user
I am trying to create a "Notify me" feature if the stock is unavailable.
On search on admin panel, I could find only that a user should sign up / log in to get notified about the stock availability.
But I just want to let the user (a guest) enter only his/her email address to get notified.
How should I do this?
Please give suggestions..
EDIT:
I have got this link, which gives me a way to start.
Till now what I did is added the following code in my template file which is creating a url for redirect (thinking to do it in ajax way, to stop page refreshing).
<?php
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$base64 = strtr(base64_encode($actual_link), '+/=', '-_,');
$postUrl = "http://$_SERVER[HTTP_HOST]/efk/productalert/add/stock/product_id/" . $simpleProduct->getId() . "/uenc/". $base64;
?>
In the above code, efk is my project folder name.
After this, I have gone to productalert/add/stock controller method i.e stockAction() which is calling sign up / login form (I think so) using $model->save();.
How should I disable this save calling and add my own small overlay which holds a textbox to enter a email address?
Magento has "Notify me when product is back in stock" feature out of the box. It can be configured in admin panel: system / configuration / catalog / product alerts and product alerts run settings.
You're right, it works only for registred customers. To make it working for guest users some coding is required. I'd say you need to do the following steps:
Add email column to product_alert_stock table
Create new controller and action (believe me, it's better than you override existing one via config.xml) which extends Mage_ProductAlert_AddController::stockAction(). Your method will have to set guest's email to productalert/stock model.
Create subscription form and make sure it submits data to your new controller/action.
Update (override) Mage_ProductAlert_Model_Observer::_processStock() method to make it respect situations when "customer" has no ID but has email.
When you'll be testing, I suggest you to install SMTP Pro Email extension and mailcatcher to ease the testing process.
We have done this (http://www.alfresia.co.uk/sorrento-side-table.html/). Here we ended up creating a custom module as when we did this magento did not support any product alert system for the guest users (i do not know if this is supported now).
We first created a text box which would appear on product page where the product is out of stock. We were saving this info in one of our custom tables where we the schema was {id, email, product_sku, status} (status had three values Awaiting Stock, In Stock, and Already Notified).
We then wrote an observer which was hooked to cataloginventory_stock_item_save_after event, this helped us get the product sku which has been back in stock, and update all entries in our custom table with status In Stock and send a mail to the user.
This is how we did it, surely there will be a much cleaner way doing this.
You could have work with plugins. MagentoCommerce has loads of plugins/extensions which does the same
Free Version - http://www.magentocommerce.com/magento-connect/product-out-of-stock-subscription-1350.html
I too had similar requirement, and have installed 'http://www.magentocommerce.com/magento-connect/product-out-of-stock-subscription-1350.html' this plugin.
Well this plugin does the job, But they have override complete product view page template instead of simply adding a new block. By this your custom development on product view page development might get reflected on frontend.
Or else this plugin definitely does the job.
This http://www.magentocommerce.com/magento-connect/product-out-of-stock-subscription-1350.html plugin is really good but it breaks for configurable product types and it completely overrides the product controller which makes your system vulnerable to future upgrades. I think observers should be hooked to events where the product is back in stock and should update the users.
Currently I have a plugin on the site that utilizes wp favorites. I've modified the wording so it's a pull list instead of "favoriting"
A user clicks a button 'add to pull list' and it adds that item to their "wp favorites" Which I don't think I'm going to be able to modify this in the way I want.
What I really want to do is be able to add these to a separate page called "Your Pull List" for example. On that page it totals the costs of each item and there will be a subscription button which will utilize paypals subscription or a button to pick-up in store. Then once their done adding all of the comics they want they can subscribe and be charged the total amount of all items.
I don't even know where to begin in setting this up. Every plugin I've found for recurring is just membership stuff and won't work in my case, as i need the items to go to a separate page be talied from there for the paypal subscription button.
Then...what if the customer wants to add more items to their pull list or remove items? Will paypals subscription api update or is this something better to just let the shop owner manually charge per month rather than automate it?
Lastly, anyone who sets up a pull list will be added in the backend of the website where the admin can manage the pull lists, print out pull lists for each user, and be notified via email whenever an existing client modifies their pull list, or a new client signs up.
So my question is - is there a plugin out there that can handle this or "close" to handle it, that I could modify? Or is this a do it from scratch idea?