Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Virtual Mall 1.1


Aodhan

Recommended Posts

Fixed the minor bug noted in the virtual mall thread.

 

Previously entered products did not automatically select the store in the drop down box when editing them in the admin section. This contains the updated instructions to make this happen.

 

Aodhan

Link to comment
Share on other sites

Just a few question....

 

Under my store I want to sell:

  • Movies

Games

Watches

Music CDs

Books

 

 

And of course under each Category there is for example, "Crimi Books", "Religion Books" and so on... the same for Music "Country", "Techno " ect...

 

so is it possible with this contribution?

 

p.s: I want to creat a store like

http://www.amazon.com/

 

or http://www.adabwafan.com/

 

any help pleeeease :oops:

Link to comment
Share on other sites

  • 1 month later...

All work but I recive an error when checkout:

 

Parse error: parse error, unexpected T_IF in f:wwwroothtmlcvs20020620catalogcheckout_process.php

 

This was:

 

    $store_index = $order->products[$i]['store_id']

if (is_array($store_totals[$store_index])) {

//------- Stuff the store array with the data needed to create individual store emails------

   $store_totals[$store_index]['store_products'] .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "n";

   $store_totals[$store_index]['store_weight'] += ($order->products[$i]['qty'] * $order->products[$i]['weight']);

   $store_totals[$store_index]['store_tax'] += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty'];

   $store_totals[$store_index]['store_cost'] += $total_products_price;

} else {

   $store_totals[$store_index]['store_id'] = $order->products[$i]['store_id'];

   $store_totals[$store_index]['store_products'] .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "n";

   $store_totals[$store_index]['store_weight'] += ($order->products[$i]['qty'] * $order->products[$i]['weight']);

   $store_totals[$store_index]['store_tax'] += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty'];

   $store_totals[$store_index]['store_cost'] += $total_products_price;

}

 

 

Acctually, I do not really sure where I have to put above lines.

 

I try several ways, but still have an error, like below:

 

//------insert customer choosen option eof ----

   $total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']);

   $total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty'];

   $total_cost += $total_products_price;



//HERE I PUT THE CODE

 

 

OR below:

 

//------insert customer choosen option eof ----

   $total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']);

   $total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty'];

   $total_cost += $total_products_price;



   $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "n";

 }



//HERE I PUT THE CODE





Thank's for help

Link to comment
Share on other sites

I have found the bug!

You forget to add semicolon after $store_index = $order->products[$i][‘store_id’] in Mall_Instructions.doc:

 

$store_index = $order->products[$i][‘store_id’];

 

 

Parikesit

Link to comment
Share on other sites

  • 1 month later...

I I tried to Use this contribution but Have two errors

1) I am getting Parse error: parse error, unexpected $ in easyphpwwwcatalogcheckout_process.php on line 343 where as I only have ?> at that line.

 

2)

In all the insertions of demonstration products, add a value of 1  

after the last current value. Example: INSERT INTO products VALUES

(1,32,'MG200MMS','matrox/mg200mms.gif',299.99,

now(),null,'',23.00,1,1,1,0,1);

 

I get error in Mysql saying unable to add column in row. I am trying to use this with MS1

 

Any Help :roll: [/b]

Link to comment
Share on other sites

  • 11 months later...

Hiyas

 

I installed the version 1.2 of this contrib on OSC MS2.

 

just 2 problems

 

1. when i login into admin and click the "login" button it says page cant be displayed but if i refresh its ok from then on. My test store owners cant login at all.

 

2. when i try to create a admin (store owner) with permissions to only access a store i get this error

 

Warning: implode(): Bad arguments. in C:\files\web sites files\mall\admin\administrators.php on line 21

Warning: Cannot modify header information - headers already sent by (output started at C:\files\web sites files\mall\admin\administrators.php:21) in C:\files\web sites files\mall\admin\includes\functions\general.php on line 18

 

this is the code from around line 21 in administrators.php

 

if ($administrators_adm_type == 'all' ) {
         $aPages = '*';
       } else {
         $aPages = implode( '|', $administrators_adm_pages ); 
       }
       tep_db_query("update " . TABLE_ADMINISTRATORS . " set administrators_username = '" .tep_db_input($administrators_username) . "', administrators_password = '" . tep_db_input($administrators_password) . "', administrators_allowed_pages = '" . tep_db_input($aPages) . "', store_id = '" . (int)$store_id . "' where administrators_id = '". (int)$administrators_id . "'");
       tep_redirect(tep_href_link('administrators.php', tep_get_all_get_params(array('cID', 'action')))); 
       break;

 

any ideas ?

thanx heaps :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...