vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - microCART: Shopping System for vB4 (https://vborg.vbsupport.ru/showthread.php?t=256723)

CJFactor 08-19-2011 03:37 PM

Will this be converted to 4.1 anytime soon?

seabiscuit 08-20-2011 12:26 AM

I would love to try this out, but go the following error when uploading xml.
Also, please let me know how much would be cool for brand free option.
Thanks in advance!

Database error in vBulletin 4.1.5:

Invalid SQL:
INSERT INTO `microcart_product_types` SET id='1', name='Downloadable', shipping='0', downloads='1';

MySQL Error : Duplicate entry '1' for key 1
Error Number : 1062
Request Date : Friday, August 19th 2011 @ 08:06:42 PM
Error Date : Friday, August 19th 2011 @ 08:06:42 PM
Script : http://www.url.com/admincp/plugin.php?do=productimport
Referrer : http://www.url.com/admincp/plugin.php?do=productadd
IP Address : xxx
Username : xxx
Classname : vB_Database
MySQL Version : 5.0.91mm-log

seabiscuit 08-21-2011 01:27 PM

I've made some progress. I successfully uploaded the files and product.

microcart shows up well in admincp, and its link shows up on actual site navbar as "e-shop", but when I click on "e-shop" I get an internal server error.

"Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Are there any common mistakes that people make? Would improper upload path cause this error?

Thanks in advance!

edit:edited to clarify what I am seeing.

Hawkmaster 09-11-2011 07:39 PM

Can this mod be used to setup several shops on my forum for different vendors?

Papa Bear 09-12-2011 08:12 PM

To bad it doesn't seem to be updated to 4.1.5

RC-Central 09-16-2011 08:52 PM

Here are my errors from microcart

Parse error: syntax error, unexpected $end in C:\wamp\www\admincp\microcart_admin.php on line 2781

and on my main forum I have these errors

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 349

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2023

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2121

JimL 09-17-2011 09:39 PM

If I have a product/subscription that runs for 365 days with "Ability to upgrade usergroup per product", will this prompt the user(s) to renew the subscription when time is running out, and degrade their group settings if they don't?

RC-Central 09-18-2011 12:27 PM

ANY ideas/Help with these errors??

v8huntn 09-19-2011 12:17 AM

Quote:

Originally Posted by AndyP (Post 2233925)
An easy fix? Yes. ;)

Thanks RcHelp. I reported the bug and got the following answer from someone.

Try this, v8huntn.


The redirect works fine for me now.

Works. Thanks!

RC-Central 09-19-2011 12:51 AM

Can ANYONE help me with my errors??

Parse error: syntax error, unexpected $end in C:\wamp\www\admincp\microcart_admin.php on line 2781

and on my main forum I have these errors

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 349

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2023

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2121

AndyP 09-19-2011 01:50 AM

I'd post it on the mod creator's forum, if you want a response from them.

AndyP 09-19-2011 04:36 AM

Quote:

Originally Posted by NJHK (Post 2187743)
Issue #1: When you add an item to the cart and they are not in the usergroup for a discount, no discount is applied like normal. However, if you change the quanitity, it changes the quanitity and adds the discount. I attached 2 screenshots to show you exactly what happens.

The above issue still exists.

For me, this free version is a little too buggy. I'm fortunate that I only need something basic for a few physical items, but I've had to avoid using addons and discounts because of bugs.

At some stage, if things grow, I may look to get a better shop, but it's hard to put faith in the paid version of this product based on this free version, which is a shame; it looks great within the forum.

Easy5s.net 09-20-2011 12:54 AM

How cart.php set as a default page instead of cms

clutchthese 09-21-2011 02:58 AM

no updates for quite some time. I'm also getting an error when accessing on 4.1.5

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

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_wysiwyg.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stealthy/public_html/cart.php on line 66

HMBeaty 09-21-2011 03:02 AM

Quote:

Originally Posted by clutchthese (Post 2248447)
no updates for quite some time. I'm also getting an error when accessing on 4.1.5

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

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_wysiwyg.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stealthy/public_html/cart.php on line 66

That's probably due to the CKEditor that was implented in 4.1.4. See this thread for a fix

clutchthese 09-21-2011 03:09 AM

Quote:

Originally Posted by HMBeaty (Post 2248448)
That's probably due to the CKEditor that was implented in 4.1.4. See this thread for a fix

I love you! :)


That worked like a charm! You're the bestist!

RC-Central 09-21-2011 12:38 PM

What about my errors??

Parse error: syntax error, unexpected $end in C:\wamp\www\admincp\microcart_admin.php on line 2781

and on my main forum I have these errors

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 349

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2023

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2121

clutchthese 09-21-2011 01:06 PM

I was testing the checkout process and i received an error due to an invalid URL redirect.

Any reason that would happen?

Invalid Redirect URL (https://www.paypal.com/cgi-bin/websc...ethod%3Dpaypal)

HMBeaty 09-21-2011 02:08 PM

Quote:

Originally Posted by RC-Central (Post 2248576)
What about my errors??

Parse error: syntax error, unexpected $end in C:\wamp\www\admincp\microcart_admin.php on line 2781

and on my main forum I have these errors

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 349

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2023

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2121

Redownload and reupload all files. unexpected $end usually means there's an incomplete file

RC-Central 09-21-2011 03:22 PM

Quote:

Originally Posted by HMBeaty (Post 2248607)
Redownload and reupload all files. unexpected $end usually means there's an incomplete file

What about the other errors? Same reason? :confused:

HMBeaty 09-21-2011 03:26 PM

Possibly. I don't know. I don't use this modification, nor have the desire to

clutchthese 09-21-2011 10:17 PM

Code:

Invalid Redirect URL (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=&item_name=Insanity+Workout%2C+&amount=10.60&handling=0&shipping=0&tax=0&quantity=1?cy_code=USD&return=http%3A%2F%2Fstealthygaming.com%2Fcart.php&item_number=Steve-21Sep11-9FXHUBCVYTCAA9LK6K?ify_url=http%3A%2F%2Fstealthygaming.com%2Fcart_gateway.php%3Fmethod%3Dpaypal)
Does anyone know what would cause this error when trying to purchase an item?

clutchthese 09-21-2011 10:29 PM

Quote:

Originally Posted by AndyP (Post 2233925)
An easy fix? Yes. ;)

Thanks RcHelp. I reported the bug and got the following answer from someone.

Try this, v8huntn.


The redirect works fine for me now.

AWESOME... i just seen this post. Thanks for this as it helped me fix the problem.

deschutes 09-23-2011 01:11 AM

Hi

Are you going to be updating the free version of microcart?

Christos Teriakis 09-23-2011 06:10 AM

Quote:

Originally Posted by HMBeaty (Post 2248607)
Redownload and reupload all files. unexpected $end usually means there's an incomplete file

It's vB error and not of this mod, or any other mod. It appear to my own mod too.
The parse code:
Code:

$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
has problems in some configurations in window servers. This must be change by removing the refference &
Code:

$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
Chris

clutchthese 09-23-2011 03:37 PM

If I can recommend the paid version to anyone, I will! This mod is AMAZING!

deschutes 09-25-2011 01:08 AM

I was just curious, as I thought the agreement when Mary gave Michael the product was that the free version was to be updated along with any commercial product. Although I just know what was shared publicy at the time.

JimL 09-27-2011 10:41 AM

I wish to be able to filter invoices in the edit invoice admin page with another criteria, including product. I have made a select box with product IDs, and added this

Code:

      With Product (wip): 
      <select name="select_product" size="0">
      <option value="0"<? if($select_product==0){ echo ' selected="selected"';} ?>>---All---</option>
      <option value="1"<? if($select_product==1){ echo ' selected="selected"';} ?>>Product 1</option>
      </select>
      &nbsp;&nbsp;&nbsp;

      <input type="submit" class="button" name="sbutton" value=" Filter List " />
    </td>
  </tr>
  </form>
  <?
  print_cells_row(array("Invoice", "Transid", "Customer", "Issued at", "Amount", "Payment", "Shipping", "Actions"), 1, 'tcat');
  $where = "WHERE id>0";
  if($inv > 0)
  {
      $where .= " AND invoicestatus=$inv";
  }
  if($ord > 0)
  {
      $where .= " AND orderstatus=$ord";
  }
  if($gat > 0)
  {
      $where .= " AND gateway=$gat";
  }
    if($select_product > 0)
  {
      $get_transid = $db->query_read("SELECT transid FROM ". TABLE_PREFIX ."microcart_orders WHERE productid=".$select_product." ORDER BY transid");
      $where .= " AND transid=$get_transid";
  }

  $invoices = $db->query_read("SELECT * FROM ". TABLE_PREFIX ."microcart_invoices ".$where." ORDER BY issuedate DESC");
  while($invoice = $db->fetch_array($invoices))


Am I way off? or am I just missing some array stuff? Would really appreciate any help :)

Nordraserei 09-27-2011 03:19 PM

Will this work with VB 3.6.12?

Easy5s.net 10-01-2011 02:51 AM

1 Attachment(s)
I want to move the header to Your Shopping Cart? can you help me!
like this

Kochleffel 10-02-2011 01:04 PM

i have blank pages to in my admincp...

JimL 10-04-2011 07:37 AM

1 Attachment(s)
Table Shipping Rates

WARNING:
This will replace the default shipping system, not supplement it!

(it is also a quick and dirty hack, and is to be considered an internal release)

https://vborg.vbsupport.ru/attachmen...1&d=1317718174

if total weight is less than or equal to 0 then shipping cost is 0 (good for subscriptions, memberships, etc).
if total weight is less than or equal to Weight 1 then shipping cost is Price 1.
if total weight is less than or equal to Weight 2 then shipping cost is Price 2.
etc...

Tested on:
vBulletin 4.1.4 & 4.1.6
MICROCART_114

WARNING:
This will replace the default shipping system, not supplement it!

(it is also a quick and dirty hack, and is to be considered an internal release)

Backup the following before you start!
/admincp/microcart_admin.php
/microcart/functions.php
microcart_zones (SQL table)


open /admincp/microcart_admin.php

find
PHP Code:

////////////////////////////////////////////////////////////////////////////////
//////////////////////////// SHIPPING ZONES & FARES ////////////////////////////
////////////////////////////////////////////////////////////////////////////////
if ($_REQUEST['do'] == 'zones')
{
    
$zoneid = isset($_REQUEST['zoneid']) ? intval($_REQUEST['zoneid']) : -1;
    if(
$_REQUEST['action'] == "newzone")
    {
       
$zoneid newZone();
    }
    if(
$_REQUEST['action'] == "editzone")
    {
       
editZone($zoneid);
    }
    if(
$_REQUEST['action'] == "deletezone")
    {
       
deleteZone($zoneid);
       
$zoneid = -1;
    }
    if(
$_REQUEST['action'] == "save")
    {
       
saveZoneOrder();
    }
    
print_form_header('microcart_admin''zones'true);
    
print_table_header("Shipping Zones"7);
    
print_cells_row(array("Zone Name""B-Weight""B-Fare""E-Weight""E-Fare""Display""Actions"), 1'tcat');
    
$zones $db->query_read("SELECT * FROM "TABLE_PREFIX ."microcart_zones ORDER BY displayorder ASC");
    while(
$zone $db->fetch_array($zones)) {
          
$cell[0] = $zone["name"];
          
$cell[1] = $zone["baseweight"];
          
$cell[2] = getFormatPrice($zone["basefare"]);
          
$cell[3] = $zone["extraweight"];
          
$cell[4] = getFormatPrice($zone["extrafare"]);
          
$cell[5] = '<input type="text" class="bginput" size="3" name="display['.$zone["id"].']" value="'.$zone["displayorder"].'">';
          
$cell[6] = '<select class="bginput" name="action" onChange="ZoneAction(this, '.$zone["id"].')">
                      <option value="0">Select Action</option>
                      <option value="1">Edit</option>
                      <option value="2">Delete</option>
                      </select>'
;
           
print_cells_row($cell);
    }
    echo 
'<input type="hidden" name="action" value="save" />';
    
print_table_footer(7"<input type=\"submit\" class=\"button\" tabindex=\"1\" value=\" Save Display Order \" accesskey=\"s\" />" construct_button_code(" Add New Zone ""microcart_admin.php?do=newzone"));
}
if (
$_REQUEST['do'] == 'editzone') {
    
$zoneid = isset($_REQUEST['zoneid']) ? intval($_REQUEST['zoneid']) : -1;
    
print_form_header('microcart_admin''zones'true);
    
print_table_header("Edit Zone"2);
    
$zones $db->query_read("SELECT * FROM "TABLE_PREFIX ."microcart_zones WHERE id=$zoneid");
    
$zone $db->fetch_array($zones);
    echo 
'<input type="hidden" name="action" value="editzone" />';
    echo 
'<input type="hidden" name="zoneid" value="'.$zoneid.'" />';
    
print_input_row("Zone Name""name"$zone["name"], 3050);
    
print_input_row("Carrier""carrier"$zone["carrier"], 3050);
    
print_input_row("Delivery Time""delivery"$zone["delivery"], 3050);
    
print_input_row("Base Weight""baseweight"$zone["baseweight"], 3050);
    
print_input_row("Base Fare""basefare"$zone["basefare"], 3050);
    
print_input_row("Extra Weight""extraweight"$zone["extraweight"], 3050);
    
print_input_row("Extra Fare""extrafare"$zone["extrafare"], 3050);
    
print_submit_row();
    
print_table_footer();
}
if (
$_REQUEST['do'] == 'newzone') {
    
print_form_header('microcart_admin''zones'true);
    
print_table_header("New Shipping Zone"2);
    echo 
'<input type="hidden" name="action" value="newzone" />';
    
print_input_row("Zone Name""name"""3050);
    
print_input_row("Carrier""carrier"""3050);
    
print_input_row("Delivery Time""delivery"""3050);
    
print_input_row("Base Weight""baseweight"""3050);
    
print_input_row("Base Fare""basefare"""3050);
    
print_input_row("Extra Weight""extraweight"""3050);
    
print_input_row("Extra Fare""extrafare"""3050);
    
print_submit_row();
    
print_table_footer();
}
///// END OF SHIPPING ZONES & FARES 


replace with
PHP Code:

////////////////////////////////////////////////////////////////////////////////
//////////////////////////// SHIPPING ZONES & FARES ////////////////////////////
////////////////////////////////////////////////////////////////////////////////
if ($_REQUEST['do'] == 'zones')
{
    
$zoneid = isset($_REQUEST['zoneid']) ? intval($_REQUEST['zoneid']) : -1;
    if(
$_REQUEST['action'] == "newzone")
    {
       
$zoneid newZone();
    }
    if(
$_REQUEST['action'] == "editzone")
    {
       
editZone($zoneid);
    }
    if(
$_REQUEST['action'] == "deletezone")
    {
       
deleteZone($zoneid);
       
$zoneid = -1;
    }
    if(
$_REQUEST['action'] == "save")
    {
       
saveZoneOrder();
    }
    
print_form_header('microcart_admin''zones'true);
    
print_table_header("Shipping Zones"13);
    
print_cells_row(array("Name""Weight 1""Price 1""Weight 2""Price 2""Weight 3""Price 3""Weight 4""Price 4""Weight 5""Price 5""Order""Action"), 1'tcat');
    
$zones $db->query_read("SELECT * FROM "TABLE_PREFIX ."microcart_zones ORDER BY displayorder ASC");
    while(
$zone $db->fetch_array($zones)) {
          
$cell[0] = $zone["name"];
          
$cell[1] = $zone["weight1"];
          
$cell[2] = getFormatPrice($zone["price1"]);
          
$cell[3] = $zone["weight2"];
          
$cell[4] = getFormatPrice($zone["price2"]);
          
$cell[5] = $zone["weight3"];
          
$cell[6] = getFormatPrice($zone["price3"]);
          
$cell[7] = $zone["weight4"];
          
$cell[8] = getFormatPrice($zone["price4"]);
          
$cell[9] = $zone["weight5"];
          
$cell[10] = getFormatPrice($zone["price5"]);
          
$cell[11] = '<input type="text" class="bginput" size="3" name="display['.$zone["id"].']" value="'.$zone["displayorder"].'">';
          
$cell[12] = '<select class="bginput" name="action" onChange="ZoneAction(this, '.$zone["id"].')">
                      <option value="0">Choose</option>
                      <option value="1">Edit</option>
                      <option value="2">Delete</option>
                      </select>'
;
           
print_cells_row($cell);
    }
    echo 
'<input type="hidden" name="action" value="save" />';
    
print_table_footer(13"<input type=\"submit\" class=\"button\" tabindex=\"1\" value=\" Save Display Order \" accesskey=\"s\" />" construct_button_code(" Add New Zone ""microcart_admin.php?do=newzone"));
}
if (
$_REQUEST['do'] == 'editzone') {
    
$zoneid = isset($_REQUEST['zoneid']) ? intval($_REQUEST['zoneid']) : -1;
    
print_form_header('microcart_admin''zones'true);
    
print_table_header("Edit Zone"2);
    
$zones $db->query_read("SELECT * FROM "TABLE_PREFIX ."microcart_zones WHERE id=$zoneid");
    
$zone $db->fetch_array($zones);
    echo 
'<input type="hidden" name="action" value="editzone" />';
    echo 
'<input type="hidden" name="zoneid" value="'.$zoneid.'" />';
    
print_input_row("Name""name"$zone["name"], 3050);
    
print_input_row("Carrier""carrier"$zone["carrier"], 3050);
    
print_input_row("Delivery Time""delivery"$zone["delivery"], 3050);
    
print_input_row("Weight 1""weight1"$zone["weight1"], 3050);
    
print_input_row("Price 1""price1"$zone["price1"], 3050);
    
print_input_row("Weight 2""weight2"$zone["weight2"], 3050);
    
print_input_row("Price 2""price2"$zone["price2"], 3050);
    
print_input_row("Weight 3""weight3"$zone["weight3"], 3050);
    
print_input_row("Price 3""price3"$zone["price3"], 3050);
    
print_input_row("Weight 4""weight4"$zone["weight4"], 3050);
    
print_input_row("Price 4""price4"$zone["price4"], 3050);
    
print_input_row("Weight 5""weight5"$zone["weight5"], 3050);
    
print_input_row("Price 5""price5"$zone["price5"], 3050);
    
print_submit_row();
    
print_table_footer();
}
if (
$_REQUEST['do'] == 'newzone') {
    
print_form_header('microcart_admin''zones'true);
    
print_table_header("New Shipping Zone"2);
    echo 
'<input type="hidden" name="action" value="newzone" />';
    
print_input_row("Name""name"""3050);
    
print_input_row("Carrier""carrier"""3050);
    
print_input_row("Delivery Time""delivery"""3050);
    
print_input_row("Weight 1""weight1"""3050);
    
print_input_row("Price 1""price1"""3050);
    
print_input_row("Weight 2""weight2"""3050);
    
print_input_row("Price 2""price2"""3050);
    
print_input_row("Weight 3""weight3"""3050);
    
print_input_row("Price 3""price3"""3050);
    
print_input_row("Weight 4""weight4"""3050);
    
print_input_row("Price 4""price4"""3050);
    
print_input_row("Weight 5""weight5"""3050);
    
print_input_row("Price 5""price5"""3050);
    
print_submit_row();
    
print_table_footer();
}
///// END OF SHIPPING ZONES & FARES 


open /microcart/functions.php

find
PHP Code:

function newZone()
{
  global 
$db$vbulletin;

  
$vbulletin->input->clean_array_gpc('p', array(
        
'name'               => TYPE_STR,
        
'carrier'             => TYPE_STR,
        
'delivery'            => TYPE_STR,
        
'baseweight'       => TYPE_INT,
        
'basefare'           => TYPE_NUM,
        
'extraweight'      => TYPE_INT,
        
'extrafare'           => TYPE_NUM
  
));
  
$name $db->escape_string($vbulletin->GPC['name']);
  
$carrier $db->escape_string($vbulletin->GPC['carrier']);
  
$delivery $db->escape_string($vbulletin->GPC['delivery']);
  
$baseweight $vbulletin->GPC['baseweight'];
  
$basefare $vbulletin->GPC['basefare'];
  
$extraweight $vbulletin->GPC['extraweight'];
  
$extrafare $vbulletin->GPC['extrafare'];
  
$displayorder 0;
  
$vbulletin->db->query_write("INSERT INTO "TABLE_PREFIX ."microcart_zones
                                      SET name='
$name',
                                          carrier = '
$carrier',
                                          delivery = '
$delivery',
                                          baseweight = '
$baseweight',
                                          basefare = '
$basefare',
                                          extraweight = '
$extraweight',
                                          extrafare = '
$extrafare',
                                          displayorder='
$displayorder'");
  
$vbulletin->db->insert_id();
  return;



replace with
PHP Code:

function newZone()
{
  global 
$db$vbulletin;

  
$vbulletin->input->clean_array_gpc('p', array(
        
'name'               => TYPE_STR,
        
'carrier'             => TYPE_STR,
        
'delivery'            => TYPE_STR,
        
'weight1'       => TYPE_INT,
        
'price1'           => TYPE_NUM,
        
'weight2'       => TYPE_INT,
        
'price2'           => TYPE_NUM,
        
'weight3'       => TYPE_INT,
        
'price3'           => TYPE_NUM,
        
'weight4'       => TYPE_INT,
        
'price4'           => TYPE_NUM,
        
'weight5'      => TYPE_INT,
        
'price5'           => TYPE_NUM
  
));
  
$name $db->escape_string($vbulletin->GPC['name']);
  
$carrier $db->escape_string($vbulletin->GPC['carrier']);
  
$delivery $db->escape_string($vbulletin->GPC['delivery']);
  
$weight1 $vbulletin->GPC['weight1'];
  
$price1 $vbulletin->GPC['price1'];
  
$weight2 $vbulletin->GPC['weight2'];
  
$price2 $vbulletin->GPC['price2'];
  
$weight3 $vbulletin->GPC['weight3'];
  
$price3 $vbulletin->GPC['price3'];
  
$weight4 $vbulletin->GPC['weight4'];
  
$price4 $vbulletin->GPC['price4'];
  
$weight5 $vbulletin->GPC['weight5'];
  
$price5 $vbulletin->GPC['price5'];
  
$displayorder 0;
  
$vbulletin->db->query_write("INSERT INTO "TABLE_PREFIX ."microcart_zones
                                      SET name='
$name',
                                          carrier = '
$carrier',
                                          delivery = '
$delivery',
                                          weight1 = '
$weight1',
                                          price1 = '
$price1',
                                          weight2 = '
$weight2',
                                          price2 = '
$price2',
                                          weight3 = '
$weight3',
                                          price3 = '
$price3',
                                          weight4 = '
$weight4',
                                          price4 = '
$price4',
                                          weight5 = '
$weight5',
                                          price5 = '
$price5',
                                          displayorder='
$displayorder'");
  
$vbulletin->db->insert_id();
  return;



find
PHP Code:

function editZone($zoneid)
{
  global 
$db$vbulletin;

  
$vbulletin->input->clean_array_gpc('p', array(
        
'name'               => TYPE_STR,
        
'carrier'             => TYPE_STR,
        
'delivery'            => TYPE_STR,
        
'baseweight'       => TYPE_INT,
        
'basefare'           => TYPE_NUM,
        
'extraweight'      => TYPE_INT,
        
'extrafare'           => TYPE_NUM
  
));
  
$name $db->escape_string($vbulletin->GPC['name']);
  
$carrier $db->escape_string($vbulletin->GPC['carrier']);
  
$delivery $db->escape_string($vbulletin->GPC['delivery']);
  
$baseweight $vbulletin->GPC['baseweight'];
  
$basefare $vbulletin->GPC['basefare'];
  
$extraweight $vbulletin->GPC['extraweight'];
  
$extrafare $vbulletin->GPC['extrafare'];
  
$vbulletin->db->query_write("UPDATE "TABLE_PREFIX ."microcart_zones
                                      SET name='
$name',
                                          carrier = '
$carrier',
                                          delivery = '
$delivery',
                                          baseweight = '
$baseweight',
                                          basefare = '
$basefare',
                                          extraweight = '
$extraweight',
                                          extrafare = '
$extrafare' WHERE id=$zoneid");

  return;




replace with
PHP Code:

function editZone($zoneid)
{
  global 
$db$vbulletin;

  
$vbulletin->input->clean_array_gpc('p', array(
        
'name'               => TYPE_STR,
        
'carrier'             => TYPE_STR,
        
'delivery'            => TYPE_STR,
        
'weight1'       => TYPE_INT,
        
'price1'           => TYPE_NUM,
        
'weight2'       => TYPE_INT,
        
'price2'           => TYPE_NUM,
        
'weight3'       => TYPE_INT,
        
'price3'           => TYPE_NUM,
        
'weight4'       => TYPE_INT,
        
'price4'           => TYPE_NUM,
        
'weight5'      => TYPE_INT,
        
'price5'           => TYPE_NUM
  
));
  
$name $db->escape_string($vbulletin->GPC['name']);
  
$carrier $db->escape_string($vbulletin->GPC['carrier']);
  
$delivery $db->escape_string($vbulletin->GPC['delivery']);
  
$weight1 $vbulletin->GPC['weight1'];
  
$price1 $vbulletin->GPC['price1'];
  
$weight2 $vbulletin->GPC['weight2'];
  
$price2 $vbulletin->GPC['price2'];
  
$weight3 $vbulletin->GPC['weight3'];
  
$price3 $vbulletin->GPC['price3'];
  
$weight4 $vbulletin->GPC['weight4'];
  
$price4 $vbulletin->GPC['price4'];
  
$weight5 $vbulletin->GPC['weight5'];
  
$price5 $vbulletin->GPC['price5'];
  
$vbulletin->db->query_write("UPDATE "TABLE_PREFIX ."microcart_zones
                                      SET name='
$name',
                                          carrier = '
$carrier',
                                          delivery = '
$delivery',
                                          weight1 = '
$weight1',
                                          price1 = '
$price1',
                                          weight2 = '
$weight2',
                                          price2 = '
$price2',
                                          weight3 = '
$weight3',
                                          price3 = '
$price3',
                                          weight4 = '
$weight4',
                                          price4 = '
$price4',
                                          weight5 = '
$weight5',
                                          price5 = '
$price5' WHERE id=$zoneid");

  return;




Run SQL query (remember to put prefix in front of the table names)
Code:

DROP TABLE IF EXISTS `microcart_zones`;
CREATE TABLE IF NOT EXISTS `microcart_zones` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(250) NOT NULL DEFAULT '',
  `displayorder` int(10) NOT NULL DEFAULT '0',
  `carrier` varchar(100) DEFAULT '',
  `delivery` varchar(100) DEFAULT '',
  `weight1` int(10) NOT NULL DEFAULT '0',
  `price1` decimal(10,2) NOT NULL DEFAULT '0.00',
  `weight2` int(10) NOT NULL DEFAULT '0',
  `price2` decimal(10,2) NOT NULL DEFAULT '0.00',
  `weight3` int(10) NOT NULL DEFAULT '0',
  `price3` decimal(10,2) NOT NULL DEFAULT '0.00',
  `weight4` int(10) NOT NULL DEFAULT '0',
  `price4` decimal(10,2) NOT NULL DEFAULT '0.00',
  `weight5` int(10) NOT NULL DEFAULT '0',
  `price5` decimal(10,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`),
  KEY `displayorder` (`displayorder`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

INSERT INTO `microcart_zones` (`id`, `name`, `displayorder`, `carrier`, `delivery`, `weight1`, `price1`, `weight2`, `price2`, `weight3`, `price3`, `weight4`, `price4`, `weight5`, `price5`) VALUES
(1, 'Zone Name', 0, 'Carrier', 'Delivery Time', 5, 1.00, 10, 2.00, 20, 4, 40, 8.00, 80, 16.00);

WARNING:
This will replace the default shipping system, not supplement it!

(it is also a quick and dirty hack, and is to be considered an internal release)

Easy5s.net 10-04-2011 07:45 AM

@ JimL

help me pls: https://vborg.vbsupport.ru/showpost....&postcount=630

JimL 10-04-2011 07:52 AM

I'm sorry I'm not a developer on this vBulletin extension, I just did some volunteer-work modifying microCART for a local club and figured I'd share if anyone else wanted the functionality.

You should also rephrase the question, I'm actually not 100% sure what you are asking.

Easy5s.net 10-04-2011 07:57 AM

I want to show my cart up header.
like mod http://www.vbcover.com/icart.php?do=...t&productid=37

JimL 10-04-2011 09:26 AM

That is not a feature currently in microCART, so either you will have to make that header, or you will have to pay someone to do it for you. Sounds interesting though, just not applicable to the site I've been working on.

mmfgamer5 10-09-2011 07:50 PM

Has anyone got a fix for this issue?
HTML Code:

Warning:  opendir(/home/micro/public_html/vb4demo/microcart/editor/photos)  [function.opendir]: failed to open dir: No such file or directory in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 207

Warning: readdir(): supplied argument is not a valid Directory resource  in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 208

Warning: sort() expects parameter 1 to be array, null given in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 212

I'm using vBulletin 4.1.6.

lapiervb 10-10-2011 12:02 PM

Quote:

Originally Posted by mmfgamer5 (Post 2255240)
Has anyone got a fix for this issue?
HTML Code:

Warning:  opendir(/home/micro/public_html/vb4demo/microcart/editor/photos)  [function.opendir]: failed to open dir: No such file or directory in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 207

Warning: readdir(): supplied argument is not a valid Directory resource  in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 208

Warning: sort() expects parameter 1 to be array, null given in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 212

I'm using vBulletin 4.1.6.

Same issue....

micheal332001 10-13-2011 07:01 AM

Quote:

Originally Posted by mmfgamer5 (Post 2255240)
Has anyone got a fix for this issue?
HTML Code:

Warning:  opendir(/home/micro/public_html/vb4demo/microcart/editor/photos)  [function.opendir]: failed to open dir: No such file or directory in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 207

Warning: readdir(): supplied argument is not a valid Directory resource  in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 208

Warning: sort() expects parameter 1 to be array, null given in  /home/steroidi/public_html/microcart/editor/assetmanager/assetmanager.php  on line 212

I'm using vBulletin 4.1.6.

Quote:

Originally Posted by lapiervb (Post 2255540)
Same issue....

you need to chmod folder microcart and all folders witin this folder to 777.
and also you need to edit the assetmanager config file to you settings.
This has been fixed in the commercial version as it does not use this editor any more.

Quote:

Originally Posted by Easy5s.net (Post 2253048)
I want to show my cart up header.
like mod http://www.vbcover.com/icart.php?do=...t&productid=37

the cart system here is microcart and not the icart system you are using so your cart you are using is not supported here.

Steven G 10-13-2011 08:20 AM

<font color="Red">Dear Micheal. Sorry for wrong spelling. microCART looks great, and I've installed it yesterday, ok.</font> I need some help, please: When I'm adding new product, for some reason, what I write in the big text editor box of 'features' section could not be saved, it remains empty every time I go back. I push the save button, everything thumbs, pricetags, stock, etc, saved but this. So I cannot give a longer description of the product. - I think this is because you wrote you moved product description to the front end... I've made several folders writeable, but it still doesn't work. Any ideas, what could be wrong? Thanks, Steve


All times are GMT. The time now is 10:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02594 seconds
  • Memory Usage 2,132KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_html_printable
  • (6)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete