Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customizing buttons & replicating original functionality


Josephi

Recommended Posts

Posted

Hi,

 

I'm fairly new to OSC, but not to PHP or shopping cart 'ware. First, a mini-rant: This is THE most undocumented system I've ever worked with!!!

 

Rant over.

 

I'm using 2.3.1. I'd like to use my own graphics for the Add to Cart, View Cart, Checkout, Continue, etc. buttons. HOW does one duplicate the functionality of these buttons to that which shipped with the package originally. I'm not terribly familiar with jQuery's tep_* functions.

 

This is high priority, and a juicy contract is on the line. I'd use another cart, but was OSC was dictated.

 

Thanks, if anyone can help me.

Posted

Joseph,

 

In this example you can see how a button is displayed in v2.3.1, the image is CSS based so you can't really use your own image.

 

<?php echo tep_draw_button(IMAGE_BUTTON_SEARCH, 'search', null, 'primary'); ?>

 

 

 

But, if you look at how a button was displayed in RC2a, you can see an actual image was called from the /includes/languages/english/images/buttons/ directory.

 

 

<?php echo tep_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH); ?>

 

So, if you replace the code on the pages you want custom buttons on and place those images in the correct directory, you could display your own buttons.

 

 

Chris

Posted

RC2a is the version prior to 2.3.1.

 

What I am suggesting is use the coding from RC2a to place your own buttons on the pages you want to change.

 

 

 

Chris

Posted

So, perhaps a solution is to install RC2a & then cut/paste, huh? I have no access otherwise. Do you have a link to it (I'm in the middle of scrubbing 4.6 Gb of data for another project)?

Posted

Hi,

 

I'm fairly new to OSC, but not to PHP or shopping cart 'ware. First, a mini-rant: This is THE most undocumented system I've ever worked with!!!

 

Rant over.

 

I'm using 2.3.1. I'd like to use my own graphics for the Add to Cart, View Cart, Checkout, Continue, etc. buttons. HOW does one duplicate the functionality of these buttons to that which shipped with the package originally. I'm not terribly familiar with jQuery's tep_* functions.

 

This is high priority, and a juicy contract is on the line. I'd use another cart, but was OSC was dictated.

 

Thanks, if anyone can help me.

 

 

Sorry, I was assuming by the above post that you had basic Php skills so my posted solution should have been obvious.

 

You can download a copy of RC2a from GITHUB and use any of the tmp_image_button functions as a reference.

 

 

 

Chris

Posted

Thanks. Just FYI, I DO have PHP skills, more than basic. What I don't have is the time to go find the link. Nothing more than that. Will this address the issue of the jQuery functionality for bringing up the proper responses to clicks? BTW, I REALLY appreciate your help in this.

Posted

There are two basic button types: Form submit buttons and Link buttons. The format is somewhat different for each type, and there is more of a difference with the older RC2a style buttons. There's a guide to buttons that may help make sense of it. It was written to convert from RC2a to 2.3, but you should be able to work backwards just as well.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...