Jump to content

hungryfrank

Members
  • Content count

    427
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by hungryfrank


  1. thank you very much for your interest, 

    as it is I think we have to use confirmation page for some of payment modules 

    ii am trying to figure out how to overcome this problem.

    just thinking out loud, maybe the confirmation.php canbe  moved in the payment_ajax.php 

    Invoice.php:  this is not an invoice. at this stage there is no payment made, so it is just a pre order.  So it is only usable for this add-on. there is no point in separating it. either have it or not. so I left it as a choice.

     

     

     

     


  2. this should work with all modules and add-ons.

    there is a line in the original code that is commented out and I uncommented it which created this problem and only when there is only one shipping method. 

    I will work one the rest. thx for the help.


  3. this add-on combines the shipping and payment page and can bypasses the checkout confirmation page as an option.

    there is no core changes. simply upload and install the header tag module

    two folders 4-5 works up to 1.0.5.

    5.5 was tested on .2 and .5

    https://apps.oscommerce.com/YzQoF&exp-checkout-1-2-page-checkout

    thanks to JcMagpie 

     


  4. 11 hours ago, kgtee said:

    Great add-on!

    I notice that when first logging in, the normal login.php page appears first as usual. The modal will only pop up later when a login link or button is clicked. Would not it be nicer if it will just pop up whenever it is demanded? For example when a new user tries to check out?

    thank you for noticing this.i think that I have found a solution.

    please backup all of your files just incase. this is very important. 

    in hooks/sitewide/loginpopout.php

    change 

     $this->siteend .= "       <script>
              $(document).ready(function() {
    $('a[href$=\"login.php\"]').on( \"click\", function(e) {
    e.preventDefault();
       $('#LoginModal').modal('show');
    });
    });
    </script>";

    to 

      
        $this->siteend .= "       <script>
    $('a[href*=\"login.php\"]').on( \"click\", function(e) {
    e.preventDefault();
       $('#LoginModal').modal('show');
    });
    
    </script>";

    this should make it work with or without cid 

    I am testing it so if you want to try it out to let me know it would be great


  5. what y

    17 hours ago, Fredi said:

    There is a good idea and wish: Add (update and adapt) GoogleMaps to the Order Editor. This will be convenient for the store and for couriers who deliver products.

    https://apps.oscommerce.com/dRodV&google-maps-delivery-link-1-0

    This requires changing the code, but is it possible to do this without changing the code with a hook?

    
    Google Maps delivery link 1.0
    
    What it does:
    A button will be added below the Delivery Address in Admin - Orders
    It allows with one click to open Google Maps in a new browser tab and pass the delivery address into a search query.
    Like this you'll save some copy paste to check if the address is accurate.
    
    
    Compatibility: all OsCommerce 2.3 versions.
    Can be adapted changing the button code to image button for 2.2 versions.
    
    In: admin/orders.php
    With PayPal App:
    Find about line 226:
                <legend style="margin-left: -20px; font-weight: bold;"><?php echo ENTRY_SHIPPING_ADDRESS; ?></legend>
    
                <p><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?></p>
              </fieldset>
    
              
              Replace by:
              
                <legend style="margin-left: -20px; font-weight: bold;"><?php echo ENTRY_SHIPPING_ADDRESS; ?></legend>
    
                <p><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?></p>
                <?php 
                  // google maps button begin
                  $replace_array = array('%\,%', '%Nº%','%C\/%','%c\/%', '%nº%', '%planta%', '%piso%', '%dcha.%', '%izqa%', '%Dcha%', '%Izda%', '%Izq%','%izq%', '%º%', '%ª%');
                  $google_address = preg_replace($replace_array, '', $order->delivery['street_address']) . ', ' . $order->delivery['city'] . ', ' . $order->delivery['postcode'] . ', ' . $order->delivery['state'] . ', ' . $order->delivery['country'];
                  echo '<a target="_blank" href="https://www.google.es/maps/place/' . $google_address . '">' . tep_draw_button('Google Maps', 'search') . '</a>';
                  // google maps button end
                ?>
              </fieldset>
    
              
    No PayPal App:
    Find about line 136:
                    <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?></td>
                  </tr>
                </table></td>
    
              Replace by:
              
                    <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?></td>
                  </tr>
                  <tr>
                    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
                  </tr>
                  <tr>
                  <td class="main"></td>
                  <?php 
                    // google maps button begin
                    $replace_array = array('%\,%', '%Nº%','%C\/%','%c\/%', '%nº%', '%planta%', '%piso%', '%dcha.%', '%izqa%', '%Dcha%', '%Izda%', '%Izq%','%izq%', '%º%', '%ª%');
                    $google_address = preg_replace($replace_array, '', $order->delivery['street_address']) . ', ' . $order->delivery['city'] . ', ' . $order->delivery['postcode'] . ', ' . $order->delivery['state'] . ', ' . $order->delivery['country'];
                    echo '<td class="main"><a target="_blank" href="https://www.google.es/maps/place/' . $google_address . '">' . tep_draw_button('Google Maps', 'search') . '</a></td>';
                    // google maps button end
                  ?>
                  </tr>
                </table></td>          
                
                
                
    NOTE: the $replace _array includes typical spanish street address cleanup. It removes stairs, floor and door numbering and other unnecessary details which prevent Google Maps to find the address.
    You can add more strings which should be stripped off for your needs.
    
    That's it.

    around line 1190

    
    
    
    <?php if (FILENAME_GOOGLE_MAP     !== 'FILENAME_GOOGLE_MAP'     ) { ?>                       
                        <li><?php echo '<a href="' . tep_href_link(FILENAME_GOOGLE_MAP,         'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_google_directions.gif', IMAGE_GOOGLE_DIRECTIONS) . '</a>'; ?></li>  
                <?php } ?>    

     

     


  6. 17 minutes ago, kgtee said:

    Great add-on!

    I notice that when first logging in, the normal login.php page appears first as usual. The modal will only pop up later when a login link or button is clicked. Would not it be nicer if it will just pop up whenever it is demanded? For example when a new user tries to check out?

    the new customer is not logging he is registering. . I am working on a combo register login page as part of a two page checkout that is almost ready


  7. why don't you start from order_editor then manipulate it to start without a customer. it is very easy. look for edit section and instead of error that there is no order to create an order. insert An order . and redirect back with an order #. then put a customer search and a create account poppet to create new customer00000000.thumb.gif.8fc6e47d370c52bca312e0733501cbfd.gif000003.thumb.gif.298c0432fd3218fb514bab5199827365.gif


  8. how strange. I found this fiddle http://jsfiddle.net/78mpxr5L/2/

    simple for start

    I put this which I got from view source

     <table class="table border-right border-left border-bottom table-hover m-0">
                                  <tr class="table-selection3 table-success">
                      <td>
                        Flat Rate                                      </td>
                                        <td class="text-right">
                        <div class="custom-control custom-radio custom-control-inline"><input type="radio" name="shipping" value="flat_flat" id="d_flat" required aria-required="true" aria-describedby="d_flat" class="custom-control-input shipping" /><label class="custom-control-label" for="d_flat">$5.00</label></div>                  </td>
                                      </tr>
                                    <tr class="table-selection3 table-success">
                      <td>
                        Per Item                                      </td>
                                        <td class="text-right">
                        <div class="custom-control custom-radio custom-control-inline"><input type="radio" name="shipping" value="item_item" checked="checked" id="d_item" required aria-required="true" aria-describedby="d_item" class="custom-control-input shipping" /><label class="custom-control-label" for="d_item">$2.50</label></div>                  </td>
                                      </tr>
                                    <tr class="table-selection3 table-success">
                      <td>
                        Zone Rates                    <div class="form-text">Shipping to US : 3.3 lb(s)</div>                  </td>
                                        <td class="text-right">
                        <div class="custom-control custom-radio custom-control-inline"><input type="radio" name="shipping" value="zones_zones" id="d_zones" required aria-required="true" aria-describedby="d_zones" class="custom-control-input shipping" /><label class="custom-control-label" for="d_zones">$10.50</label></div>                  </td>
                                      </tr>
                              </table>   

    and change the script to look for shipping. it works in the fiddle but not in my shop

×