Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

killerwhale65

Pioneers
  • Posts

    212
  • Joined

  • Last visited

Posts posted by killerwhale65

  1. Hello,

     

    I am using Paypal also for creditcard payments without Paypal account. The problem is that the link 'do not have a Paypal account? Click here ...' is so small that most customers do not find it without my help. I was wondering is its possible to transfer them directly to the page where you should enter the card details, instead of to the Paypal login screen. Possible?

     

     

    Thanks!

     

    Matt

  2. hello,

     

    the order editor works great, but comes into troubles when editing an order that contains products that are removed from the catalog. They do not show up in the editor, yet remain in the details view. Totals are therefor miscalculated in the editor. Any workarounds for this?

     

    thanks!

     

    Matt

  3. so, here is what to do to:

    1. have a specified discount redeem automatically when a customer logs in

    2. adjust the coupon admin so that you can specify a coupon for "auto redeem"

     

    1. login.php add:
    //auto redeem discount coupon on login
    $auto_redeem = tep_db_fetch_array(tep_db_query("SELECT coupon_id FROM coupons WHERE auto_redeem='on'"));
    if ($auto_redeem['coupon_id'] > 0) {
    tep_session_unregister('gv_id');
    tep_session_unregister('cc_id');
    tep_session_register('cc_id');
    $cc_id = $auto_redeem['coupon_id'];
    }
    //end auto redeem discount coupon on login
    
    2. tabel coupons add field: "auto_redeem"
    
    3. checkout_payment.php: wrap coupon-class call in this IF-statement if you dont want to display the "enter discount coupon form"
    //auto redeem discount coupon on login
    $auto_redeem = tep_db_fetch_array(tep_db_query("SELECT coupon_id FROM coupons WHERE auto_redeem='on'"));
    if (!$auto_redeem['coupon_id'] > 0) {
    echo $order_total_modules->credit_selection();//ICW ADDED FOR CREDIT CLASS SYSTEM
    }
    //end auto redeem discount coupon on login
    
    4. coupon_admin.php add:
    121: 'auto_redeem' => tep_db_prepare_input($HTTP_POST_VARS['auto_redeem']),
    565: echo tep_draw_hidden_field('auto_redeem', $HTTP_POST_VARS['auto_redeem']);
    596: add auto_redeem to query
    611:	 if ($coupon['auto_redeem']=='on') {$auto_redeem = true;}	 
    687:	   <tr>
    			<td align="left" class="main">Auto load on login</td>
    			<td align="left"><?php echo tep_draw_checkbox_field('auto_redeem', $auto_redeem); ?></td>
    			<td align="left" class="main"> </td>
    	  </tr>

     

    It may need some tweaking but it should work.

  4. Hello,

     

    Does anyone know how i would have a certain discount coupon redeem automatically (for example when the customer logs in)? So that the user does not have to manually enter it anymore at checkout and sees his discount from the moment he logs in. This would be for a site-wide discount, available to every customer during a limited period of time.

     

    Thanks!

     

    Matt

  5. Hello Matt

     

    This is a very nice contribution.

     

    I need a photo gallery for my oscommerce site where just the administrator of the website to upload new photos (a variable number, 40-50 for example). The visitors just watching the pictures into a "photo gallery" page.

    I think your next version of the contribution will be almost I need, or maybe I'll can adapt the script. What do you think about this?

     

    Sorry for my bad english.

     

    Regards,

    Flaviu

    simple solution: in gallery.php and account.php, simply remove the link to gallery_user.php. Now nobody will be able to get to the upload page. If you want to upload pics, simply enter the URL manually (yourwebsite.com/gallery_user.php), or make a link somewhere in your admin.

  6. I have the Additional images mod installed on my store. Will adding the on the fly mod affect images other than what is in the gallery?

    yes, it will also affect your product pictures. It will automatically create a thumbnail for your product pictures, like it does for your gallery images. No idea if it can work together with the additional images contrib.

  7. There is nothing else in that window under admin. SHouldn't I have more things to configure or look at?

    If you have no pics uploaded, then this is all you will see. Once you have pics, you will be able to remove them, and edit their comments. More will be added later, as mentioned on the project website.

  8. Thanks for the code to show thumbnails in the admin.

     

    I have another problem; almost every day now, some spamming robot is adding hundreds of lines of text and links to other sites in the comment box in the first image.

    Does anyone have any ideas how to stop this?

    anti spam and other security measures will be incorporated in the next update.

  9. Hello again.

     

    Just like the user who posted here earlier, I was wondering if there was an easy way to sort the pictures by upload date?

    The newest ones are currently added to the end of the page.

     

    Kenny

    You can always sort the query to your likings. Sorting will be added in the future.

  10. Sorry, I have know enetred code on correct line it now reads

     

    FOR TESTING ONLY/tmp/phpIjROcQ

    gallery/3_1.jpg

     

    Warning: copy(gallery/3_1.jpg)[function.copy] :failed to open stream: No such file or directory in/home/*****/public_html/gallery_user.php on line 81

    Honestly, i have no idea. It looks like the temporary file on your server does not exist, hence it cannot be copied to the gallery folder. Maybe you should contact your hosting provider to inquire about the use of the php copy function. Maybe it is disabled i don't know.

  11. No sorry this photo also showed the same

    Warning : copy(gallery/3_1.jpg)[function copy] : failed to open stream:No such file or directory in /home/*****/public_html/gallery_user.php on line 80

     

    I was just pointing out the different code that followed the loading of a different image.

     

    Is it possible I have not loaded a file properly?

    I think you have misplaced the code i have given you earlier.

     

    It should read:

    $target_path = $target_path . $customer_id."_".$n.".jpg"; 
    echo 'FOR TESTING ONLY'.$file['tmp_name'][$key]."<br>".$target_path;
    if(copy($file['tmp_name'][$key], $target_path)) {

     

    and not:

    echo 'FOR TESTING ONLY'.$file['tmp_name'][$key]."<br>".$target_path;
    $target_path = $target_path . $customer_id."_".$n.".jpg"; 
    if(copy($file['tmp_name'][$key], $target_path)) {

  12. Have changed permissions to 666, but the same error is still showing.

    Any other ideas, I really want to upload some photos to see how they look.

    In the gallery_user.php file, before this line 80, add the following:

    echo 'FOR TESTING ONLY'.$file['tmp_name'][$key]."<br>".$target_path;

     

    Now upload a picture, and now you should see on top of your website the text 'FOR TESTING ONLY'. Let me know what is says next to that text, as well as directly below it.

     

    If that text does NOT appear, do this:

     

    change the following:

    			if(copy($file['tmp_name'][$key], $target_path)) {
    			//$messageStack->add('gallery_user','success');
    			$messageStack->add('header',TEXT_FILE. ' '. basename($file['name'][$key]). ' '.TEXT_UPLOADED,'success');
    			mysql_query("INSERT INTO gallery (cID,pID) VALUES (".$customer_id.",".$n.")");
    		} else{
    			//$messageStack->add('There was an error uploading the file '.  basename($file['name'][$key]). ', please try again!','error');
    			$messageStack->add('header','There was an error uploading the file '.  basename($file['name'][$key]). ', please try again!','error');
    		}

     

    into this:

    			/*if(copy($file['tmp_name'][$key], $target_path)) {
    			//$messageStack->add('gallery_user','success');
    			$messageStack->add('header',TEXT_FILE. ' '. basename($file['name'][$key]). ' '.TEXT_UPLOADED,'success');
    			mysql_query("INSERT INTO gallery (cID,pID) VALUES (".$customer_id.",".$n.")");
    		} else{
    			//$messageStack->add('There was an error uploading the file '.  basename($file['name'][$key]). ', please try again!','error');
    			$messageStack->add('header','There was an error uploading the file '.  basename($file['name'][$key]). ', please try again!','error');
    		}
    */

     

    That will deactivate the copy function so it will also not generate an error. Upload a picture. Now you should see the text 'FOR TESTING ONLY', let me know what it says next to it and below it.

  13. Yes

    Warning : copy(gallery/3_1.jpg)

    How do I go about making gallery folder writable?

    and thanks for the quick response

    In your FTP program, right click on the gallery folder, and choose something like file attributes (depending on the program you use). Now make sure all read/write/execute options are ticked.

  14. Have just uploaded your newest version and looking forward to using it.

    Have returned this error when uploading picture

     

    [Function copy] : failed to open stream : No such file or directory in home/******/public_html/gallery_user.php on line 80

     

    I think line 80 reads if(copy($file[tmp_name'][$key], $target_path)) (

     

    Very new to html and would appreciate any help.

    Looks like something goes wrong during the copying of the file from a temporary folder on your server, to the /gallery folder.

    Try to make your gallery folder writable (CHMOD 666).

     

    Before the [function copy], is there anything else listed, such as:

    Warning: copy(.....)?

×
×
  • Create New...