Results 1 to 10 of 3673

Hybrid View

  1. #1
    Join Date
    Aug 2013
    Posts
    4
    Plugin Contributions
    0

    Default Re: EasyPopulate 4.0 Support Thread

    no solution mc123456... relating to my post on 08/24/2013

    please answer with a simple yes or no.
    Last edited by any_way; 9 Dec 2013 at 05:42 PM.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by any_way View Post
    hello chadd,

    your plugin works fine, is it possible to add "v_products_name" to export file "Model/Price/Qty"?

    Output "Model/Price/Qty" like this example:

    v_products_model,v_products_name,v_status,v_specials_price,v_specials_date_avail ,v_specials_expires_date,v_products_price,v_products_quantity
    Quote Originally Posted by any_way View Post
    no solution mc123456... relating to my post on 08/24/2013

    please answer with a simple yes or no.

    Wow... My apologies. I can generate a solution. Not a difficult add in, at least if just want to have the data displayed on the screen. If want the program to use the data, that may take a little more. Below is the changes to show the products name (multilingual potential) for the product model being discussed when doing price quantity discounts. It does not necessarily import that data back into the database. (Haven't looked through the import code, nor did I see that it was expected to import the name.) So this is just for user benefit when updating the other fields.

    In admin/includes/functions/extra_functions/easypopulate_4_functions.php

    Main code section: function ep_4_set_filelayout

    At the case for priceqty: (Add the foreach statement after the first $filelayout and before the next $filelayout... This forces the name to be after the model...)

    PHP Code:
     case 'priceqty':
      
    $filelayout[] = 'v_products_model';
      foreach (
    $langcode as $key => $lang) { // create variables for each language id
       
    $l_id $lang['id'];
       
    $filelayout[] = 'v_products_name_'.$l_id;
      }   
      
    $filelayout[] = 'v_status'// 11-23-2010 added product status to price quantity option 
    in admin/easypopulate_4_export.php find the end of the 'full' routine as shown below, insert the text in red (oops, used php tags... There is no custom coloring for PHP tags so the code area as described) before the //BEGIN: Specials. (This just happens to be a convenient location and is not required to be at that specific point in the code. There is an area lower in the code that addresses the calculations of the priceqty discount; however, after quickly coding this, it seemed like this area still may be preferred. The lower area is heavy in math and affects of performing a discount and not so much in the other "random" data to be exported.

    PHP Code:
      // if($ep_dltype == 'full')

      
    if ($ep_dltype == 'priceqty') {
       foreach (
    $langcode as $key => $lang) {
        
    $lid $lang['id'];
        
    $sql2    'SELECT * FROM '.TABLE_PRODUCTS_DESCRIPTION.' WHERE products_id = '.$row['v_products_id'].' AND language_id = '.$lid.' LIMIT 1 ';
        
    $result2 ep_4_query($sql2);
        
    $row2    mysql_fetch_array($result2);
        
    $row['v_products_name_'.$lid]        = $row2['products_name'];
       } 
    // end foreach $langcode
      
    //end if ($ep_dltype == 'priceqty')

      // BEGIN: Specials 
    Last edited by mc12345678; 9 Dec 2013 at 06:39 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. BackUp ZC [Support Thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 285
    Last Post: 23 Dec 2020, 10:40 AM
  3. Wordpress On ZC [Support Thread]
    By hira in forum All Other Contributions/Addons
    Replies: 1858
    Last Post: 17 Jan 2014, 01:24 AM
  4. ZJ Black 2 support thread
    By Liamv in forum Addon Templates
    Replies: 1
    Last Post: 15 Feb 2010, 02:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg