A A A
Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Custom Embroidery for kids clothing site - based on Market Theme
November 9, 2011
5:10 pm
Avatar
Member
Members
Forum Posts: 7
Member Since:
October 8, 2011
sp_UserOfflineSmall Offline

Just finished the first Market Theme site for a local business that sells customized kids clothing. It offers various designs with custom embroidery. I had to modify a few of theme's .php files to support for item variations, such as "Type of Embroidery" drop-down, "Name or Initial" input box, "Matching Items" drop-down, "Sleeve Length" choice. I also made changes to single.php to allow to enter and view comments on a single-view item page.

The Item Categories also display the number of items offered for each category.

Here's the link to the site:

http://www.initiallyyoursbydian.com/

November 10, 2011
10:31 pm
Avatar
Admin
Forum Posts: 5862
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

Looks great!  Good job.

November 14, 2011
6:15 pm
Avatar
Member
Members
Forum Posts: 52
Member Since:
October 21, 2011
sp_UserOfflineSmall Offline

Nice job and great look!

November 19, 2011
1:29 am
Avatar
Member
Members
Forum Posts: 26
Member Since:
January 9, 2010
sp_UserOfflineSmall Offline

Hi LGD, your market site looks & works great! I noticed you were successful adding the "Name or Initial" input box. I too use the market theme and customized single.php for an input box, however, i can't get my field name to show in my cart, only the input value. Can you share how you were able to transfer your "Name or Initial" field name along with the field value to your cart? Any insight you can give is greatly appreciated!

November 19, 2011
2:01 am
Avatar
Member
Members
Forum Posts: 7
Member Since:
October 8, 2011
sp_UserOfflineSmall Offline

Hi!

If you look at single.php file and notice how other form fields are processed, you'll see that each field, whether it's a drop-down box or input field, have associated HIDDEN input name, which are all named 'on1', 'on2', etc., and the VALUE of those hidden fields (defined in english.php), is exactly what you'll see in the shopping cart as option name. It is VERY IMPORTANT to give your input (or select) field the ID that will be 'os' followed by the SAME number as the corresponding HIDDEN field. The code, that processes the shopping cart (cart.php) will look for this, and if this is not done properly, you won't see your field displayed there.

For example, here's how my name-or initial field looks in single.php (notice the use of name='on4' on hidden input and id='os4' on the input field). The mkt_THEME_SINGLE_LABEL_INITIALS is defiled in english.pho as "Name or Initials", and that's what you'll se in your shopping cart.

 

<tr>

           <?php echo '<td><input type="hidden" name="on4" value="'.mkt_THEME_SINGLE_LABEL_INITIALS.'"/>'.mkt_THEME_SINGLE_LABEL_INITIALS.':<a title="'.mkt_THEME_SINGLE_LABEL_INITIALS_ENTER_INSTRUCTIONS.'"></br>(Hover for Details)</a></td>

  <td><input type="text" class="field" id="os4" name="os4" cols="4"></td>'; ?>

</tr>

I hope that'll help,

Anna

November 19, 2011
11:11 pm
Avatar
Member
Members
Forum Posts: 26
Member Since:
January 9, 2010
sp_UserOfflineSmall Offline

Hi Anna, you're explanation was perfect and quickly helped me find the error. My id was set to "os4" but name was "on4". Thank you and bless you!!!Smile

Forum Timezone: UTC 0

Most Users Ever Online: 213

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

icy1: 2636

wreed06: 175

laurie390: 169

boutiqueelliette: 156

StitchTek Services, LLC: 144

yiorgos: 127

Member Stats:

Guest Posters: 457

Members: 2471

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 4078

Posts: 18978

Newest Members: teddy1, raycrean, tseibt55, aceman, peteryoung320@gmail.com, JdsCentral

Moderators: Market Admin: 5862

Administrators: Market Admin: 5862

Market takes ecommerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.