Jump to content



Latest News: (loading..)

* * * * * 2 votes

[Contribution] Option Types v2


  • Please log in to reply
914 replies to this topic

#901   dartecha

dartecha
  • Members
  • 21 posts
  • Real Name:Chad
  • Gender:Male
  • Location:Australia

Posted 31 January 2013 - 11:34 PM

View Postmattjt83, on 30 January 2013 - 03:29 AM, said:

@dartecha

I would check in application_top and also the tep_get_uprid function in includes/functions/general.php.  In the past when I have had issues with items simply not adding to the cart with this addon it was an issue in application_top.
Thanks for the advice Matt.
I found the problem, it was in application_top. I had installed another addon "add_more_than_one_unit_to_cart" and had this line in my code...
add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+$HTTP_POST_VARS['add_quantity'], $real_ids);
Once I changed it back to this...
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+1, $real_ids);
It worked fine. Don't know if this will work with the text box issue? However it might provide a platform for a fix.

Cheers

#902   stuee

stuee
  • Members
  • 21 posts
  • Real Name:Stuart

Posted 01 February 2013 - 02:34 AM

Hi,
I have a issue with the setup of this addon.
I used to use Oscommerce a few years back when this was in early stages and it worked perfectly fine, now 2 years down the track i want to setup a online shop selling a few items but having a few issues.

MY problem is that i cant add things to the product type list and all the text is in codin words and not correct. (see attached image)

I have done 2 installations.
1st time, installed new os 2.3.3 in a new folder to a new DB, i edited the files and uploaded the other files. I had the problem.

1nd time thought i may have made a mistake, made another folder and db and installed os 2.3.3, this time just copied the write over file to my server. but exactly the same problem.

as i can see the date the options file was available for download was late 2011 and 2.3.3 was released late 2012 im guessing something is slightly different.

Can someone tell me if what to look for or if it is a know simple problem.
Thanks in advance.
Stuart

Attached Files



#903   LadyShark

LadyShark
  • Members
  • 6 posts
  • Real Name:LadyShark
  • Gender:Female
  • Location:Minneapolis, MN USA

Posted 02 February 2013 - 04:02 PM

I installed osCommerce v 2.3.1, and optionTypes 2.3.1

I am having the same issue.  When I create a product with the text box it doesn't show up in the cart.


Also, My cart doesn't show the "remove" item link.  If a customer changes her mind about an item in the cart, there is no way to remove the item.

Could someone help me with these two problems.... please, please. :(

Edited by LadyShark, 02 February 2013 - 04:03 PM.

LadyShark

#904   Irin

Irin
  • Members
  • 789 posts
  • Real Name:Irina
  • Gender:Female
  • Location:Texas

Posted 04 February 2013 - 03:12 PM

Hello. I have a few issues with this add-on, hopefully someone can help me with them. If a product with an empty option as an attribute is added to the shopping cart, then in shopping cart it shows as:

Quote

- Options: [img]/images/icons/view.gif[/img]
When I click on the "eye", it opens a new window with Error 403 - Forbidden:

Quote

Forbidden
You don't have permission to access /images/upload/ on this server.

If I set a first option in a select box to "Please Select", then in shopping cart it shows as:

Quote

- Options: --Please Select--
Is it possible to not count "Please Select" as an attribute?

Also, is it possible to specify a link for the option or show a picture of a selected option?

Thanks in advance.

Edited by Irin, 04 February 2013 - 03:23 PM.


#905   LadyShark

LadyShark
  • Members
  • 6 posts
  • Real Name:LadyShark
  • Gender:Female
  • Location:Minneapolis, MN USA

Posted 09 February 2013 - 06:19 PM

View Postmultimixer, on 15 November 2011 - 03:33 PM, said:

Steven, check your email, the issue was in file includes/classes/shopping_cart.php

To all

Checking both, the uploaded file and the manual instructions about file includes/classes/shopping_cart.php, I think they are both wrong, no wonder that it doesn't work

Till there is an update to that package, I recommend to use the file from the old package instead and merge it manually into your new file


Thanks George.  That worked, the products are loading into the shopping cart now, but I still don't have any shopping cart buttons (delete, update).  What am I missing?
LadyShark

#906   RacerDecal

RacerDecal
  • Members
  • 2 posts
  • Real Name:Mike

Posted 12 February 2013 - 07:14 PM

View PostRacerDecal, on 19 November 2012 - 09:58 PM, said:

I've had this issue (see attached image) for a while and have been looking everywhere for a solution and found two different cases here but no solutions that work for me. I've installed this contribution on an older site and it worked great! Now I'm running 2.3.3 with only  a few contribs installed (Option Types 2.3.1, reCaptcha and modular front page.)
What could I have done wrong? I originally used the drop on top files but when I found this problem I restored my back up and went through the installation instructions. I've compared the files to find the only differences is the mention of zappo's option types V2 and 2.3.1.
Attachment Problem.jpg
I would describe this problem (for those who may not see the image) as a text field or text area showing up as a dropdown menu only showing CUSTOMER-INPUT instead of the input field.

Any help would be very appreciated!
Thanks in advance.

My problem was that I forgot about a 3rd configure file in includes/local/. After fixing that I ran into the empty cart issue which was solved with an old quote on page 46 on this topic.

multimixer, on 15 November 2011 - 07:33 AM, said:

Steven, check your email, the issue was in file includes/classes/shopping_cart.php

To all

Checking both, the uploaded file and the manual instructions about file includes/classes/shopping_cart.php, I think they are both wrong, no wonder that it doesn't work

Till there is an update to that package, I recommend to use the file from the old package instead and merge it manually into your new file


#907   hazard1988

hazard1988
  • Members
  • 6 posts

Posted 19 March 2013 - 08:34 PM

Hello I am currently having two issues with this plugin, could somebody help please.

1st. In the email that goes to the customer the fields are showing as 'CUSTOMER-INPUT'?
2nd. If the customer inputs more then 32 letters/numbers the field is cut short in the admin panel so I can read the full text?

Edit:

For the 2nd issue can I just change 'orders_products_attributes > products_options' to 'varchar(100)' in the MySQL?

Edited by hazard1988, 19 March 2013 - 08:39 PM.


#908   hazard1988

hazard1988
  • Members
  • 6 posts

Posted 22 March 2013 - 05:42 PM

bump

#909   LadyShark

LadyShark
  • Members
  • 6 posts
  • Real Name:LadyShark
  • Gender:Female
  • Location:Minneapolis, MN USA

Posted 23 March 2013 - 01:59 AM

Can someone please tell me how to format the product options?  I'd like to have each product option start on a new line, and right now they need line breaks.
LadyShark

#910   Irin

Irin
  • Members
  • 789 posts
  • Real Name:Irina
  • Gender:Female
  • Location:Texas

Posted 05 April 2013 - 02:11 PM

Some of my product options are very long. How can I make the option's text to wrap at the end of lines? Where this can be set?

Thanks.

#911   Irin

Irin
  • Members
  • 789 posts
  • Real Name:Irina
  • Gender:Female
  • Location:Texas

Posted 05 April 2013 - 07:47 PM

I will answer my own question. To wrap text at the end of lines, you need to remove <nobr> in the code, so it looks like this:
//BOF Option Types v2.3.1 - Removed <nobr>, because Text options can be very long and added Attribute prices
		echo '<br /><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i>';
		if ($order->products[$i]['attributes'][$j]['price'] != '0') {
		  echo ' - (' . $order->products[$i]['attributes'][$j]['price_prefix'] . $currencies->display_price($order->products[$i]['attributes'][$j]['price'], tep_get_tax_rate($order->products[$i]['tax'])) . ')';
		}
		echo '</small>';


#912   Irin

Irin
  • Members
  • 789 posts
  • Real Name:Irina
  • Gender:Female
  • Location:Texas

Posted 06 April 2013 - 03:35 AM

I have a problem with product options added twice to the database when order is placed and also showing twice in confirmation email, like this:

Quote

Product Name
- Options: Option #1 (+$1.50)
- Options: Option #1 (+$1.50)
I can't figure out what can be a problem here. Any help will be appreciated.

Thanks.

Edited by Irin, 06 April 2013 - 03:36 AM.


#913   lyinggod

lyinggod
  • Members
  • 3 posts
  • Real Name:George

Posted 22 April 2013 - 05:23 PM

I have OSC 2.2rca installed with a fair amount of addons and other modifications. I have also heavily modified the options_types.php file to modifiy how some of the options behave, such as including images with radio buttons and text boxes that have been rendered uneditable, which work well within the context of the sites design. However, I find that I need to have multiple options of the a similar type, such as several versions of text boxes that each have different modifications, such as having one type of text box that can be end user edited and some that can't.

I am still new to PHP and so I haven't had success in my own attempts to add additional option types. I have searched the support forums and online, but I have not been able to find an answer.

Has any found a solution to or have an suggestions towards achieving this?

Thank you

#914   FosterLee

FosterLee
  • Members
  • 5 posts
  • Real Name:Lee Foster

Posted 02 May 2013 - 08:24 PM

I'm trying to run this with OSC 2.3 and am not able to get it to show any of the additional options. Whether I set it a checkbox, text area or any of the others it still shows as a drop down. Can anyone help with this?

#915   LadyShark

LadyShark
  • Members
  • 6 posts
  • Real Name:LadyShark
  • Gender:Female
  • Location:Minneapolis, MN USA

Posted 02 May 2013 - 09:40 PM

I'm using the text type attribute for customer input.   If there's an apostrophe in the text box and later the customer wants to delete it from the shopping cart, it won't delete.

Please help!!!!!
LadyShark