Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
microCART: Shopping System for vB4 Details »»
microCART: Shopping System for vB4
Version: 1.1.4, by micheal332001 micheal332001 is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Major Additions - Version: 4.1.9 Rating:
Released: 01-06-2011 Last Update: 06-12-2011 Installs: 227
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

microCART is a fully featured Shopping Cart for vBulletin 4.x, with support for Downloadable & Pysical Products, Subscriptions and Services, without missing any feature even from commercial scripts. Installation is very easy, you just need sometime for the initial configuration.

Edit: Please note - Currently this mod is only compatible with vBulletin 4.1.9 and below, if your using vBulletin 4.1.10 then the modifications current version released here (1.1.4) is not suggested for use. - TheLastSuperman

1.- Highlights
  • Supports Downloadable products
  • Since version 1.0.3 supports Physical products too!!
  • Supports Subscriptions (Even Reccuring)
  • Supports Services
  • Ability to upgrade usergroup per product
  • Unlimited depth levels of categories
  • Unlimited Products
  • Supports Renewals
  • Ability to Add Orders manually
  • PayPal & 2CO payments
  • Since version 1.0.4 support payments with ccBill (Credits to kastak)
  • Supports AddOns
  • Support Special Deals
  • Unlimited Screenshoots per product
  • Unlimited Files per product, so the customers can download previous versions
  • Unlimited Agreements
  • Customers (and only those who have bought that product) can rate and review it.
  • Admin can turn On/Off the Reviews per product
  • Uses HTML Editor.
  • Since version 1.0.5 support multiple Tax levels.
  • Since version 1.0.5 support Shipping Zones with unlimited shipping choices per zone.
  • Since version 1.0.5 supports Delivery locations (unlimited depth, eg Country, State, Area with different setup for Tax and Shipping per category.
  • Since version 1.0.5 customer must enter his details to finalize the order.
  • NEW!! Since version 1.0.6 supports Auto Tax calculation.
  • NEW!! Since version 1.0.6 supports Auto Shipping calculation.
  • NEW!! Since version 1.0.5 supports Invoice creation.
  • NEW!! Comming Soon Block.
2.- Installation
  • Download and unzip microCART.zip file
  • Upload all the files in your site keeping the same structure. eg cart.php must be on the same level as your forum.php
  • CMOD 777 the directories:
    • microcart
    • microcart/photos
    • microcart/photos/thumbs
    • microcart/photos/tmp
    • microcart/editor/files
    • microcart/editor/flash
    • microcart/editor/media
    • microcart/editor/photos
    • microcart/pdf
    • microcart/fonts
    • microcart/images
  • Login to your admincp and import product-microcart.xml
3.- Configuration
  • First of all you need to setup microCART General Options. The most important option is to set the path to the directory where you'll store the files. For security reasons you must create a directory over the public area. Then write the full path in the options. Don't forget the trailing slash at the end. Example:
    • /home/username/downloads/
  • Setup Usergroup permissions. Available options are:
    • Can access the store
    • Can order
    • Can Moderate. Please note that, as a way to bypass the limitation of having vB editor in admincp, I've moved the product descriprion, system messages and agreements to fronend. But only those who can moderate can access this area, and only for modifying the text. Nothing more.
  • Setup Categories and Subcategories for your store.
  • Setup your Agreements (at least one)
  • Start adding products but from AddOns and Services. It will helps you to save time, as when at a later time you add a main product, you can choose the addons.
  • To work properly with HTML editor you need to edit settings.php locating at: microcart/editor/assetmanager/ and set the corrects paths.
4.- Product Options (Configurations)

In version 1.0.3 has been added support for configurable options. Not just simple text choices, but options that can increase/decrease the total price. That's why you need to pay extra attention on entering these options to avoid pricing mess.

First of all, you can find these options as "Extra Options" on the droplist on the right of each product (AdminCP). By choosing it you'll get a list of all available configurable options for the specific product. You can Edit and Delete it, or you can change the display order. Click "New Extra Option" to add one.

There is no need for explanation of title. Write there anything that you want. Examples of configuration options are: Color, Size, Ram, Hard disk etc. So let's write Size. In the box below you must add all the available options keeping the format:
Amount|Name

Examples:
  • 0|Normal : This option dosen't changes the product's price and it will appears as: Normal
  • 15.30|Large : This option increases the price by 15.30 and it will appears as: Large (+$15.30) ... The currency symbol is the one that you've setup. DON'T NEED TO ENTER CURRENCY SYMBOL HERE
  • -7.50|Mini : This option decreases the price by 7.50 and it will appears as: Mini (-$7.50). ONCE MORE: DONT ADD CURRENCY SYMBOL.
5.- Product Terminology
  • Price: Is the normal price that you're selling a product (eg 49.95)
  • Discount: Is the amount that you're giving as discount. eg if you place 4.95 here the price will appear as $49.95 $45.00
  • Special (Bundle) price. Currently not in use
  • AddOns. Are products that someone can order in the same form (eg Installation, Brand Free etc).
  • Special Bundle. Currently not in use
6.- Understanding Shipping Zones
To understand Shipping fields (Base weight, Base fare, Extra weight, Extra fare), you must know how the companies (at least the most of them) are working. They're saying: Till 3 kilos the rate is $15. More than 3 kilos you must add $3 per 500gr (1/2 kilos). In this example you must setup:
  1. Base weight 3000 (in grammars) or 3 (in kilos)
  2. Base fare 15.00
  3. Extra weight 500 (in grammars) or 0.5 (in kilos)
  4. Extra fare 3.00
  5. Please note to use the same as the definied in the general option weight unit. Setting in options kgr and here grammars is the best way to mess your shop.
7.- Friedly notes
  • Please let my copyright link in place. Thank you.
  • When rating, please remember that you're rating the script and not me as a person. Thank you.
  • Don't spam this thread with comments about my personality. Comment my work only. Thank you.
8.- Demo9.- Warning

The included HTML Editor is commercial, so you can use it ONLY within microCART directory.


UPGRADING

To upgrade just upload the new files then follow
2.- Installationwith Allow Overwrite set to YES


CHANGE LOG

  • Added Comming Soon Block
  • Added view users invoice within admincp
  • Added usergroup controled discounts
  • Added stock level control
  • Added coupon system
  • Changed the invoice system to work better.
  • Added forum home side block. (Download the product-microcart_forum_block.xml and Install like a new product)
  • MICROCART_114_01022011.zip has no affects added to my account
  • MICROCART_114_240211.zip has a fade in affect on my accounts pages.
  • added some java for the my accounts page and the product view page. So you dont have to re-fresh the page all the time. Updated: 28/02/2011
  • Fixed the problem with the euro within the add-on options.
BUG FIX
  • Fixed error within the admin php file on line 23.
  • Updated the forum side block ( Please let me know if you are still having problems with this. Updated Date 22nd Fed 2011)
  • fixed problem with the prices. UPDATED Date 22nd Apr 2011 to upgrade just upload the files as its only the cart.php and microcart/functions.php files that have been updated.
  • Fixed problem with the add-ons prices. Updated 25th Apr 2011 to upgrade just upload the cart.php file
  • cart.php updated again to fix the problem with the add-ons when changing the qty within the cart.
  • Fixed problem with edit invoices in admincp
  • Fixed a problem with large price formats.
  • Fixed problem with option prices (11-05-2011)
  • Updated the files for the new editor not tested Updated 13/06/2011.
Arabic Language File Download Here

Download Now

File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
mohammadxxx, Romamo

Comments
  #752  
Old 11-20-2012, 07:03 PM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there manual updates in this thread?
Reply With Quote
  #753  
Old 12-12-2012, 05:40 PM
starletclub starletclub is offline
 
Join Date: May 2011
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: require_once([path]/includes/functions_wysiwyg.php) [function.require-once]: failed to open stream: No such file or directory in [path]/cart.php on line 71

Fatal error: require_once() [function.require]: Failed opening required '/home/*/public_html/*/*/functions_wysiwyg.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*/public_html/*/cart.php on line 71
Reply With Quote
  #754  
Old 12-15-2012, 10:45 AM
micheal332001 micheal332001 is offline
 
Join Date: Apr 2004
Posts: 1,112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by starletclub View Post
Warning: require_once([path]/includes/functions_wysiwyg.php) [function.require-once]: failed to open stream: No such file or directory in [path]/cart.php on line 71

Fatal error: require_once() [function.require]: Failed opening required '/home/*/public_html/*/*/functions_wysiwyg.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*/public_html/*/cart.php on line 71
edit the file and remove these 2 lines and all will be fine.
Reply With Quote
  #755  
Old 12-15-2012, 08:18 PM
Fatal Hazard's Avatar
Fatal Hazard Fatal Hazard is offline
 
Join Date: Oct 2012
Location: Southampton, UK
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I can't see the tab. It all looks like it is working but no tab shows

Any Ideas?

thanks in advance
Reply With Quote
  #756  
Old 12-19-2012, 03:03 PM
Fatal Hazard's Avatar
Fatal Hazard Fatal Hazard is offline
 
Join Date: Oct 2012
Location: Southampton, UK
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to get the upload path right. I keep linking it to the downloads directory on my server but it still does not work.
Reply With Quote
  #757  
Old 12-22-2012, 07:10 PM
Ichigo88's Avatar
Ichigo88 Ichigo88 is offline
 
Join Date: Nov 2009
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!
the product its work perfectly on mu vb 4.2.0 patch 3.

but i have a small question!

how to change the user in other primary usergruop?
now the usergroup upgrade its make in addizional.

thanks inadvance
Reply With Quote
  #758  
Old 12-24-2012, 01:40 AM
comunidadmh comunidadmh is offline
 
Join Date: Dec 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello people!

I wanted to know if anyone knows of any mods (I'm willing to buy it) that allows the purchase and sale of items between users of a forum. As already known sites pagins buying and selling things. Anyone know of a mod like this?

sorry for my English, use google translator xD
Reply With Quote
  #759  
Old 12-24-2012, 09:23 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ichigo88 View Post
Hi!
the product its work perfectly on mu vb 4.2.0 patch 3.

but i have a small question!

how to change the user in other primary usergruop?
now the usergroup upgrade its make in addizional.

thanks inadvance
Even if I advice you to avoid changing primary usergroup, follow the steps below:

1.- With a text editor (like Notepad) open the file: microcart/functions.php

2.- Search for:
Code:
function promoteUser($transid, $userid)
3.- Replace the whole function:
Code:
function promoteUser($transid, $userid)
{
    global $vbulletin, $db;
    $boughtdate = date("Y-m-d");
    $orders = $db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $leng = $product[dlperiod]/2;
            $expiration = add_date($order[dend],$leng,0,0);
            $dend = date("Y-m-d", strtotime($expiration));
            $db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paiddate='$boughtdate', dend='$dend' WHERE transid='$transid'");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $user = $db->query_first("SELECT membergroupids FROM ".TABLE_PREFIX."user WHERE userid=$userid");
                $groups = $user["membergroupids"];
                $groupids = explode(',', $groups);
                if (!in_array($promousergroup, $groupids))
                {
                    if (empty($groups))
                    {
                        $upgrade = $promousergroup;
                    } else {
                        $upgrade = $groups.','.$promousergroup;
                    }
                    $db->query_write("UPDATE ".TABLE_PREFIX."user SET membergroupids='$upgrade' WHERE userid=$userid");
                }
            }
    }
    return;
}
With this new code:
Code:
function promoteUser($transid, $userid)
{
    global $vbulletin, $db;
    $boughtdate = date("Y-m-d");
    $orders = $db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $leng = $product[dlperiod]/2;
            $expiration = add_date($order[dend],$leng,0,0);
            $dend = date("Y-m-d", strtotime($expiration));
            $db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paiddate='$boughtdate', dend='$dend' WHERE transid='$transid'");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $db->query_write("UPDATE ".TABLE_PREFIX."user SET usergroupid='$promousergroup' WHERE userid=$userid");
            }
    }
    return;
}
4.- Search for:
Code:
function downgradeUser($transid, $userid)
5.- Replace the whole function:
Code:
function downgradeUser($transid, $userid)
{
    global $vbulletin, $db;
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_invoices SET invoicestatus=7 WHERE transid='$transid'");
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paid=0 WHERE transid='$transid'");
    $orders = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $vbulletin->db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $user = $vbulletin->db->query_first("SELECT membergroupids FROM ".TABLE_PREFIX."user WHERE userid=$userid");
                $groups = $user["membergroupids"];
                $groupids = explode(',', $groups);
                if (in_array($promousergroup,$groupids))
                {
                    $key = array_search($promousergroup, $groupids);
                    unset($groupids[$key]);
                    $downgrade = implode(',', $groupids);
                    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SET membergroupids='$downgrade' WHERE userid=$userid");
                }
            }
    }
    return;
}
With...:
Code:
function downgradeUser($transid, $userid)
{
    global $vbulletin, $db;
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_invoices SET invoicestatus=7 WHERE transid='$transid'");
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paid=0 WHERE transid='$transid'");
    $orders = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $vbulletin->db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SET usergroupid='2' WHERE userid=$userid");
            }
    }
    return;
}
6.- Save and upload the functions.php at: microcart/

*** ATTENTION ***
Downgrading the user means that he is going to usergroup 2 (Registered Members). So if you're selling another product which also promotes the user to a higher usergroup, then the user will LOSTS that promotion. That's why using the additional usergoups is the best choice.

Chris
Reply With Quote
Благодарность от:
Ichigo88
  #760  
Old 12-26-2012, 10:45 PM
Ichigo88's Avatar
Ichigo88 Ichigo88 is offline
 
Join Date: Nov 2009
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you! work perfectly now!! best plug
Reply With Quote
  #761  
Old 01-01-2013, 06:01 AM
Mark4865's Avatar
Mark4865 Mark4865 is offline
 
Join Date: Sep 2010
Location: South-Africa
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone know how to change the size of the product block that appears in the main forum page, I just want to shorten mine a bit.

thanks in advance for any help
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06307 seconds
  • Memory Usage 2,387KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete