Silverstripe Handler - php

I am trying to find ways to do a piece of functionality which is nice to have. Not sure how to approach. Proper silverstripe way would be good.
I have a website (built in Silverstripe)that has multiple types of products, example
Payment type (Products that needs payment)
Email type (Products that does not need payment but just requires users email)
Just delivery type (Products that does not need payment but need users address)
The idea is, users can add anytype of product to the basket and basket summary shows all the different types of products the user has added to basket. Once the user clicks checkout button , each type of product has its own handler to do the checkout.
How can i achieve this? Ideas please i.e how should I structure/architect it.
Ideally I would like to have this URL structure
http://example.com/orders/checkout/Payment
http://example.com/orders/checkout/Email
http://example.com/orders/checkout/Delivery
R

I'd recommend that you start with an existing SilverStripe e-commerce module.
https://github.com/silvershop/silvershop-core
http://www.silvercart.org/
https://github.com/sunnysideup/silverstripe-ecommerce
SilverShop is my personal preference.

Related

Wordpress asigning product to user to show report

Wordpress, Advanced Custom Fields (ACF), Woocommerce
Hello,
currently I am working on project that is needed to manage products (Music artists) and customers (bars/lounges).
I need to solve the communication between "artist(product) being booked/purchased as product by bar/lounge(customer)" in Woocommerce.
Artists must be able to login and see if they have been booked by customer and the additional information must be shown (who is the customer (bar or lounge name), place, when, how long, must take his equipment or not).
I am thinking of asigning product id(artist) to user role - artist.
User login is generated manualy by administrator.
Artist logins by the credentials given by administrator and is able to see his own report of the information that must be shown.
Advanced custom fields custom user role and post type as woocommerce product
Is there any possiblity lets say for the purchase that is finished to be displayed not only for administrator but for user "Artist".
I am thinking of editing wp-admin/profile.php , but is it the correct way of doing it?
I will try updating the solution where I have gone so far, as soon as there will be new information.
You can add artists as vendor's, and with same name product. Now assign that product to that vendor. Whenever his product is bought he will get notification and can see stats also. As he can log in to dashboard with some restricted access. Many vendor plugins are there in market. I am giving you a sample one :
https://wordpress.org/plugins/yith-woocommerce-product-vendors/

Prestashop 1.6 Automatically adding a customer to a group upon virtual product purchase

Using Prestashop 1.6 is there a way to automatically add a customer to a group when they purchase a virtual product?
Example: Virtual product is a membership. When they buy the product, I want them to be assigned to the Members group.
One way I was thinking of achieving this was to do the following:
Can the virtual product link that the customer receives in the email be a link to a PHP page that I create? I was thinking of writing a PHP page with an activate membership button that would insert them into the proper group via MySQL code.
I could not find a module to do this. I would like to avoid creating a module because then I would have to study module creation and I was hoping for an easier solution.
The highly recomended solution is a custom module that will assign the user when the payment is confirmed. It can be done with changes to the core file, but this is the worst solution, since after the next upgrade of PrestaShop those changes will be overriden. Module creation is not so hard, you just need to implement the hook "actionOrderStatusUpdate" and asign the order customer to previously selected customer group from the module configure page.

Add custom attributes like serial number to order_item and quote_item

I want to add a custom attribute to magento order_item and quote_item and a field in the order form for my serial number attribute and other custom attributes.
I'm selling Tablets offline but I am using Magento backend for managing all inventory and customer information along with orders, the tablets are given on subscription bases so there is no shipping as the customer would be at store during purchase.
I want to add custom attribute which are unique to the customer and tablet.
I could create an attribute for the customer but what if they order more than one tablets which means logically the only way is to place those attributes in the order item.
I seriously don't know how to go about.
I hope someone can point me to extended magento sales module and add my custom attribute to order_item and also show in magento order form.
First you need to add/change this two tables:
- sales_flat_order_item
- sales_flat_quote_item
just add fields and name it as you wish (that will be your new attributes)
file you need to edit for your new attribute to be visible on order page should be this one:
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml
and your new attribute:
<?php echo $_item->getMyCustomAttribute() ?>
If you would like to make that attribute "the proper way" it requires a bit more skill..
Here is an example how you can add custom category attribute, same would be for your problem:
http://inchoo.net/ecommerce/magento/how-to-add-new-custom-category-attribute-in-magento/
Thanks
I would ask some of the more popular extension providers for a custom quote. AheadWorks comes to my mind quickly... I say visit the Magento Connect store and browse through highly rated extensions and you'll see there are a small number of companies doing lots of successful work.
They will be able to "more properly" handle, store, track, and communicate your desired data through the entire system.
Once I better quantify a similar situation I would like to program, I will seek the help of experienced module builders. The Zend MVC is a miserable bowl of spaghetti once you start trying to code in it! :D

Magento tasks for learning

I am learning Magento. I have already installed and gone through admin side.
Have done for adding customers ,Products ,Pricing or other stuffs. Now I want to learn more things (currently don't want to go for code and database).
Can anyone post here sample tasks (specially for learning). Because as I said am new to magento and don't konow exactly what type of tasks we can do in Magento.
I want some good tricky and sample tasks to do in magento. So I can learn it more.
1.) Change the favicon logo.
2.) Change the magento home page logo.
3.) Change the Top links "name" Ex: My Cart as image.
4.) Adding new link in top links.
5.) Move the top menu navigation as left menu navigation.
6.) Creating banner slider in home page
7.) Listing the feature products in home page.
8.) Need to put newsletter subscription in footer area.
9.) Removing the magento ads in right column (i.e) The dog and poll removing.
10.) Adding the new column in sort by order in category page.
11.) In product detail page need to show product description and some other information as tab format.
12.) Magento registeration need to enable extra options like company name, phone number, address, user type.
13.) Each customer group need to show different type of price for products.
14.) While importing products we to import the tier price to each products.
15.) Creating new attributes to products. And need to import values to that new attribute.
16.) Adding custom new column while registering a customer. And it need to show in admin side as editable.
Basically you are in e-commerce domain and magneto is a e-commerce framework which provide a platform to build e-commerce application with some build in out of the box functionality so that the developer at the end of the day not have to start building things from scratch.
what type to tasks we can do in Magneto.
being a eCommerce platform it provides you out of the box functionality ranging from product management,category/catalog management,shipping,checkout process,user management,post order process etc and many other things.
E-commerce in itself start from application like B2C (Business to customer), B2B (business to business).
I want some good tricky and sample tasks to do in magento
i am not sure what exactly you mean by this statement what you want to learn how exactly flow going on or how you can customize the things.
my suggestion is to explore some e-commerce implementations like amazon,eBay etc see how things flow there and than come out what you want to have in all.
i have not worked with magento but being in e-commerce domain i know every platform provide some sample reference application so it should be the case with Magento so just run that application and see how flow is going on and play around with it.
one thing that seems good to start is checkout process as it is always an integral part of any B2C implementation.
Other aspect is Product content management.
How about learning to create tier prices for customer options? I am quite sure that you need this for the future someday.
Magento allows tier prices for products and prices for individual options. However, tier prices for individual options are not supported. Tier prices for individual options are needed e.g. when selling promotional items or textiles with custom imprints. To create individual tier prices just try one of these three options:
one of these three options:
Realizing the surcharges with Cart Price Rules
Simple Configurable Products / Better Configurable Products
Generating additional individual options with prices
In my opinion the last one is the best solution. An individual option only allows one surcharge, when more are needed (one for each tier price you want to have). So you create several options with different prices. By doing so the following module might help you. You can request it for free at: http://www.code4business.de/kontakt-impressum/.
This module requires entering of tier prices and individual options in the backend. Afterwards the prices of the individual options for each tier price are entered in the newly generated options. When you save it, the following table of individual options will be generated. In this table, the tier prices can be entered for the original individual options. After filling out all these fields, the result is expected to be in the checkout.
I hope this is the kind of learning-idea you imagined! If you have further questions just take a look at this link. It offers you detailed descriptions with pictures how to create tier prices:
http://www.code4business.de/tier-prices-for-magento-custom-options-en/

Creating paypal checkout button with different prices?

I have a website giving services for money, i just want a button goes to a paypal checkout page with a price specified by me. There is no product or service name, just website name and price. But i couldn't find something like that. I have too many different prices, so i can't create buttons for every price. Is it possible to define price as a variable in my webpage, and send paypal this? I use php.

Categories