TomatoCart

65370 Downloads
281 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

insert form
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: insert form
#2986
insert form 1 Year, 5 Months ago Karma: 0
Today i have problem water everyone help me.
I want insert one form size side qty, but i doesn't know code insert qty in where
sinhvienluoi81
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3077
Re:insert form 1 Year, 5 Months ago Karma: 6
Sorry for my delayed answer! Exactly, the code is allocated under the template file, Let's take the glass_gray for example,
navigate to the file path as /glass_gray/content/products/info.php, and find the code as the below shows:
Code:

          <?php
            if (!$osC_Product->hasVariants()) {
              echo '<b>' . $osC_Language->get('field_short_quantity') . '</b>&nbsp;' . osc_draw_input_field('quantity', $osC_Product->getMOQ(), 'size="3"') . '&nbsp;' . osc_draw_image_submit_button('button_in_cart.gif', $osC_Language- >get('button_add_to_cart'), 'style="vertical-align:middle;" id="addToShoppingCart"');
            }
          ?>



there you can add you Size pull down menu that meet your need, good luck!
Kick7Spring
Team Member
Posts: 137
graphgraph
User Offline Click here to see the profile of this user
yulincun@live.cn
The administrator has disabled public write access.
 
#3119
Re:insert form 1 Year, 5 Months ago Karma: 0
I'm understand and insert code

<?php
if (!$osC_Product->hasVariants()) {
echo <b> .osc_draw_input_field('size', L, 'size="3"') .'</b><b>' . $osC_Language->get('field_short_quantity') . '</b>&nbsp;' . osc_draw_input_field('quantity', $osC_Product->getMOQ(), 'size="3"') . '&nbsp;' . osc_draw_image_submit_button('button_in_cart.gif', $osC_Language- >get('button_add_to_cart'), 'style="vertical-align:middle;" id="addToShoppingCart"');
}
?>
But I need help me step actions form this and then insert value size to data
i'm inserted 1 column products_site after column products_return_quantity
sinhvienluoi81
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to top Page: 1
Moderators: jmccommas, hdata, newkid

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?