yiishop

A simple, but full featured, i18n, extensible Web Shop for easy integration into your Yii Web Application
92 followers

News:

Yii-Shop is alive again! I added a SVN repository at Google Code: http://code.google.com/p/yii-shop/

This extension is a simple, but full featured, internationalized, extensible Web Shop for easy integration into your Yii Web Application...

Features

  • Server-side Shopping cart via Session
  • Customizable Product specifications (weight, color, material, size, ...)
  • Customizable Variations (product t-shirt, variation: red, blue, yellow; small, medium, huge)
  • Tax system (7%, 19%, ...) VAT
  • Customizable shipping methods
  • Customizable payment methods
  • Generate Invoice and Delivery slip automatically with good template, can be customized to fit your company needs
  • 100% Translated to english, german

Resources

Documentation

Requirements

  • Yii 1.1 or above

detailed Documentation

Detailed Documentation is provided with the package unter the docs/ directory. There is also a Mysql Workbench .mwb Schema available.

Installation

To install this module, follow the following steps:

1.) extract the file under the modules/ directory of your Web Application

2.) set up the Module in your protected/config/main.php:

return array(
 [...]
 'modules' => array('shop' => array( 'debug' => 'true')),
 [...]

3.) run /shop/install in your Web Browser

4.) follow the on-screen installation instructions

5.) Create an empty directory containing your Product Images. By Default, this is approot/productimages. Make sure it is writable by your Web Server Process.

6.) After Installation, make sure to remove the 'debug' => 'true' in your Configuration.

7.) Read docs/config.txt for Configuration Options

Usage

Just run http://your_app/index.php?r=shop/products/index for the frontend and http://your_app/index.php?r=shop/products/admin for the backend/Admin interface.

Note that this Module does NOT handle User/Admin authentification. You have to do this by yourself, either by CAuthManager, CDbManager, the yii-user-management or the srbac Module. Instructions on how to integrate this Module with the Yii User Management Module will be available soon, it is already prepared

Change Log

March 15, 2011

0.7rc3 * much new things

February 13, 2010

0.5 * still alive * minor bugfixes

0.4 alpha * Added Installation routine * added german i18n Strings

February 4, 2010

0.1 alpha * Added shopping Cart * Added Ordering & Ordering administration * Added (primitive) Price Calculation

February 1, 2010

  • First development snapshot

Total 20 comments

#13209 report it
leo4all at 2013/05/14 07:13pm
Install error

The weirds thing is I did checkout from svn and gave me this error when I try to install

The table "shop_category" for active record class "Category" cannot be found in the database.

But if I download the zip file from here it works.

does anyone know the error above?

#8430 report it
arielon at 2012/06/02 07:22pm
Good module. Needs retouches.

To my liking is a good module. If there's something to be added, I'd fork it and do my own, instead of blaming the creator. Thanks.

#8401 report it
Tpoxa at 2012/05/31 05:18am
Thank you

Thank you. But you code is really bad. Do you familiar with MVC? Have you heard that operating with models directly within the view files is not quite good? Why you calling models in plural form? .....

#8005 report it
NetDabbler at 2012/05/03 05:39am
Two Products tables?

Why is the Products table defined twice in the InstallController.php file at lines 132 and 223?

The second table is never created because of the 'IF NOT EXISTS' clause. The second table appears necessary for order handling.

#7761 report it
thyseus at 2012/04/16 06:45am
jackcobain: database schema

afaik the schema provided in the package is up-to-date. Could you please try the schema provided at code.google.com/p/yii-shop ? thank you!

#7758 report it
jackcobain at 2012/04/16 02:32am
yii-shop_0.7rc3.tar.bz2 database schema is not updated

i just downloaded and integrated this lovely modules in YII it has updated files but not an updated database schema.. can some one tell me when i will get updated database schema.

it has all below tables in a code but not in a database schema

public $categoryTable = 'shop_category'; public $productsTable = 'shop_products'; public $orderTable = 'shop_order'; public $orderPositionTable = 'shop_order_position'; public $customerTable = 'shop_customer'; public $addressTable = 'shop_address'; public $imageTable = 'shop_image'; public $shippingMethodTable = 'shop_shipping_method'; public $paymentMethodTable = 'shop_payment_method'; public $taxTable = 'shop_tax'; public $productSpecificationTable = 'shop_product_specification'; public $productVariationTable = 'shop_product_variation';

#6953 report it
yiimann at 2012/02/15 12:11pm
test

I need to test this extension, looks interesting thanks.

#6945 report it
ManInTheBox at 2012/02/15 09:08am
Parse error: syntax error, unexpected ':' in...

This issue is caused by obsolete PHP version < 5.3.

Unfortunately, there are still hosting providers with PHP 5.2 installed...

To fix this: Update PHP version OR:

In yiishop/models/Products.php, method setVariation() you'll find this:

...
'position' => @$value['position'] ?: 0,
...
'price_adjustion' => @$value['price_adjustion'] ?: 0,
...

change it to this:

...
'position' => isset ($value['position']) ? $value['position'] : 0,
...
'price_adjustion' => isset ($value['price_adjustion']) ? $value['price_adjustion'] : 0,
...

$result = ($variable) ?: 'variable is false'; trick is available only in PHP 5.3

Cheers

#6478 report it
polyhedron at 2012/01/12 04:44pm
Definitely a version 0.xx program

So if you really don't know the Yii framework very well, you had better wait for 1.0 to come out ...

There are a bunch of things that need to be worked on and configured.

Don't get me wrong, this is an good pre-stage module, but someone shouldn't even think about putting this into production without a major amount of rewriting and configuring.

#5905 report it
blevy009 at 2011/11/23 05:03pm
Looking good so far!! Nice job!

I've got products and images loaded up, also running RBAM and have User model. Wondering if you have any docs on hooking up yii-shop to existing user db?? Looks to me like the next step is to setup foreign keys in the shop_customer tbl as the email address should have already been verified in the user setup process.

Did notice that user_id is getting set if a current user is logged in to the site, but the if not, once logged in, it doesn't return to the checkout page.

Some instructions sure would be appreciated!!

#5212 report it
thyseus at 2011/09/22 07:50am
installation

did you run the installer?

#5211 report it
jayyii at 2011/09/22 07:19am
database tables

how all the tables create automatically ?

i have created a database named SHOP,and made changes in config/main.php !

what else should i follow to view all tables in my database ?

#5188 report it
thyseus at 2011/09/21 01:10pm
License of yii-shop

Thanks for your interesting in yii-shop and the license of yii-shop. yii-shop stays GPL, because Software should stay free. You can use it in commercial projects (what sense would a non-commercial shop make anyway ;) ), you can fork it, you can contribute to it! I see no problems with a GPLv3 license for yii-shop and all my other extensions.

#5186 report it
Backslider at 2011/09/21 12:57pm
Oops

No license in the package.... too bad.

#5185 report it
Backslider at 2011/09/21 12:52pm
License

Why can't you license this BSB? Yii is BSD license.

#5184 report it
Asgaroth at 2011/09/21 12:41pm
@jayii

If the modules folders is not there, then create it under 'protected' folder, its not a big deal...

#5178 report it
jayyii at 2011/09/21 10:06am
demo

demo !!! and modules ?? in step 1 . there is no modules folder. only models folder is there.

#4886 report it
Dana at 2011/08/25 07:44am
Location of modules folder

The modules folder should be located at /protected/modules/ which means your shop should be at /protected/modules/shop/

#4884 report it
Amm at 2011/08/25 04:43am
"shop.ShopModule" is invalid. Make sure it points to an existing PHP file.

I could not resolve this issue,despite the explanation given above by 'danaluther'..please explain to me where should I create this module folder, I created this in the main directory of my web application and placed the extracted shop folder inside that..I have included the given code in main..but this error keeps coming!

#4819 report it
migajek at 2011/08/19 05:53am
why don't you run the demo of this extension somewhere?

the demos / working examples are common and useful idea to see how does extension look like / work :)

Leave a comment

Please to leave your comment.

Create extension