Jump to content


Corporate Sponsors


Latest News: (loading..)

drferrari

Member Since 17 Apr 2007
Offline Last Active May 10 2012, 12:05
-----

Posts I've Made

In Topic: Square meter contrib

19 January 2012, 14:53

I found it "YEAHHHH", wait for my square meter contrib. thanks all chat friend for advises.

In Topic: Square meter contrib

07 January 2012, 21:33

forgot the above posts, it is Lenght * width = square metere value

Look at my my attach files. (and make it work on your oscommerce)

1) product_info-1.php page (FOR ADD FIRST PRODUCTS WITH LENGHT AND WIDTH)-> rename to product_info.php for your first add to cart

2) product_info-2.php page (FOR ADD SECOND PRODUCTS NO LENGHT AND WIDTH only quantity e.g. 10)-> rename to product_info.php for your second add to cart

3) shopping_cart.php

4) includes/application_top.php

5) square-meter5.txt rename to -> square-meter5.js

6) includes/classes/shopping_cart.php
look at :
function update_quantity($products_id, $lenghtValue, $widthValue, $quantity = '', $attributes = '') { 
if you have product A with LENGHT AND WIDTH and product B with NO LENGHT AND WIDTH in your shopping cart and try change quantity of the product B you can't,

if you change the function to:
function update_quantity($products_id, $quantity = '', $lenghtValue, $widthValue, $attributes = '') { 
you can change the quantity BUT you loose LENGHT and WIDTH of your product A

ANY IDEA HOW CAN I FIT IT.

In Topic: Square meter contrib

06 January 2012, 20:15

Thank you, chris I know your contrib, sorry but I wanna create my own.

if you have any idea.

in shopping_cart.php page I check

tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']));

this goto aplication_top.php

case 'update_product'
$cart->remove($HTTP_POST_VARS['products_id'][$i]);

and then this goto include/classes/shopping_cart.php

function remove WHY THIS NOT WORK???