Jump to content
Sign in to follow this  
Aodhan

[Contribution] Virtual Mall 1.1

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

Share this post


Link to post
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:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×