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...
Detailed Documentation is provided with the package unter the docs/ directory. There is also a Mysql Workbench .mwb Schema available.
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
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
0.7rc3 * much new things
0.5 * still alive * minor bugfixes
0.4 alpha * Added Installation routine * added german i18n Strings
0.1 alpha * Added shopping Cart * Added Ordering & Ordering administration * Added (primitive) Price Calculation
Total 20 comments
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?
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.
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? .....
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.
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!
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';
I need to test this extension, looks interesting thanks.
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:
change it to this:
$result = ($variable) ?: 'variable is false'; trick is available only in PHP 5.3
Cheers
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.
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!!
did you run the installer?
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 ?
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.
No license in the package.... too bad.
Why can't you license this BSB? Yii is BSD license.
If the modules folders is not there, then create it under 'protected' folder, its not a big deal...
demo !!! and modules ?? in step 1 . there is no modules folder. only models folder is there.
The modules folder should be located at /protected/modules/ which means your shop should be at /protected/modules/shop/
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!
the demos / working examples are common and useful idea to see how does extension look like / work :)
Leave a comment
Please login to leave your comment.