Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

hungryfrank

Members
  • Posts

    427
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by hungryfrank

  1. I managed to get a page up to update the totals. I have to pass the value of selected shipping to it

    my Ajax works 

    but I can't get the change function to work

    $(document).ready(function(){
        var shipping = $(".shipping:checked").val();
    	//load_data();
    	function load_data()
    	{
    		$.ajax({
    			url:"http://localhost/metro55/total_ajax.php",
    			method:"post",
    			data:{
    			shipping:shipping
    		 //   actions:processs
    			},
    			success:function(data)
    			{
    				$('#result').html(data);
    			}
    		});
    	}
    	
        $('input:radio[name=shipping]').change(function() {
          	load_data();
    		
    	});
    });

    if I uncomment the load data it loads but not when the shipping radio is clicked. I need that and passing the value to the Ajax page

     

    total_ajax.php

  2. On 2/8/2020 at 8:11 PM, René H4 said:

    "CopyCat detection" initiated by "Phoenix Club Member Protection Society" 

    I don't think it is acceptable behavior to attack someone for posting a free add-on to the community.  and it is not acceptable to form a group to attack another member for doing so.

    and it is shouldn't acceptable behavior to form a group  to prevent other member of community to  contribute to the community.

    and all for the sole purpose of financial interest of a third party.

     

  3. on a test shop only

    I need a little help testing of this.   

    in your application top

    add 

     if ($PHP_SELF=='checkout_shipping.php')  tep_redirect(tep_href_link('checkout_payment.php'));

    and replace this

    and  please leave comment so I can fix it or let me know if it works properly with other addons.

    checkout_payment.php

  4. On 2/8/2020 at 10:42 PM, hungryfrank said:

    you can do that    - PayPal app 

    
    <?php
    /*
      $Id$
    
      osCommerce, Open Source E-Commerce Solutions
      http://www.oscommerce.com
    
      Copyright (c) 2014 osCommerce
    
      Released under the GNU General Public License
    */
    
      if (tep_session_is_registered('admin')) {
        $cl_box_groups = array();
     $cl_box_groups = array();
        if ($dir = @dir(DIR_FS_ADMIN . 'includes/boxes')) {
          $files = array();
    
          while ($file = $dir->read()) {
            if (!is_dir($dir->path . '/' . $file)) {
              if (substr($file, strrpos($file, '.')) == '.php') {
                $files[] = $file;
              }
            }
          }
    
          $dir->close();
    
          natcasesort($files);
    
          foreach ( $files as $file ) {
            if ( file_exists(DIR_FS_ADMIN . 'includes/languages/' . $language . '/modules/boxes/' . $file) ) {
              include(DIR_FS_ADMIN . 'includes/languages/' . $language . '/modules/boxes/' . $file);
            }
    
            include($dir->path . '/' . $file);
          }
        }
    
      
        usort($cl_box_groups, 'tep_sort_admin_boxes');
    
       
    
        foreach ( $cl_box_groups as &$group ) {
          usort($group['apps'], 'tep_sort_admin_boxes_links');
        }
        }
    ?>
    

    and include this file in the top of the administrator_group.php

    this will give you an error  about PayPal.

    you have to take the paypal box out or another code change in PayPal.php which is very easy and harmless

      include(DIR_FS_CATALOG . 'includes/apps/paypal/admin/functions/boxes.php');

    to

      include_once(DIR_FS_CATALOG . 'includes/apps/paypal/admin/functions/boxes.php');

    then it works

     

     

    this is what you have to do and considering that you have to make core changes any way is the best option.

  5. who is going to ship the product.

    if it is the supplier then you should start from multi vendor shipping. that is more complicated to do than customer being able to add product. you can simply add a button to open a form for in each category in the shop. and add a report to their account.  the question is who is going to ship. who is going to get paid. returns. are u going to let the customer know that you don't own the product?

  6. I looked at the files and got them to work in the shop section and they belong in the admin section and you have already working versions in the admin and it is easier to copy those than using these

    one is order.php

    one is logoff.hp

    one is categories.php

    and two reports 

    there are much better place to start.

     

     

     

  7. ok I try to do it later this week. I am trying to reduce checkout process😀.  but looking at it it is pretty independent of osc. it might just work as it is and u have to just bootstrap it

  8. in suppliers_area_top.php comment out     //$password = md5($password); line 8

    and with  php. admin just put a number in password 11like and use 11 two login and see where it takes u

    this way if the problem is encoding md5 we know and u can checkout the rest of stuff

  9. I am going to try. of ofcourse if you have good developer that is familiar with osCommerce  they can make one that dose exactly what u want. with this there are a lot of changes that has to be done to the core.  

  10. can you point a link and what the issue is. I need to add vendors also. if it is for 2.2 its easier to understand for me

    1 hour ago, LeeFoster said:

    There is a vendor admin add-on but no one has been able to get it to work on anything since 2.2 I think. My site will be hobby related also and I want to be able to allow other vendors to sell and manage through my site. Kind of like an Amazon market place, then when an order gets placed they are notified of anything they need to ship and as you say payment gets split.

     

  11. On 4/26/2019 at 5:30 AM, osComMarket said:

    Despite that it looks good, it is not written good enough.
    You still use nested tables what is a no-go.
    You embed forms inside a table what is also a no-go.
    But i respect the work done.

    You should take a look at Henry's BS4 admin:
    https://github.com/osc2nuke/oscommerce-2.3.4.1-CE

     

    that one is nice also. but I am not getting the dashboard modules 

×
×
  • Create New...