Show Posts


Messages - maulik 1intl

Pages: 1 [2] 3 4 ... 6
16
Development Help Needed / Re: Create next preview button
« on: August 20, 2019, 05:49:12 AM »
Thanks   :) :) :) :) :)
attach all there file with code but data is not display id.

17
Development Help Needed / Re: Create next preview button
« on: August 20, 2019, 01:16:11 AM »
what error are you getting? send errors from error log file so I can look at it.

Thanks you so much for replay

Above error is database name table error which i was change and now i was update in live project but Previous Product and next product link not show in page or not get value of product id. i was attach image that not id get.

As per above code add in all file in live project http://1intl.com

Thanks so much  :) :) :)

18
Development Help Needed / Re: Create next preview button
« on: August 19, 2019, 09:14:25 AM »
You will need to edit core code to get this. Better option is to make an extension

But try this if it works for you because I think you have some custom code already:

https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/product/product.php#L750

if(isset($category_info) && count($category_info) > 0){
         $nextPrevProducts =  $this->model_catalog_product->getProductNextPrevProducts($product_id, $category_info['category_id']);
         $this->data['nextPrevProducts'] = $nextPrevProducts;
      }

right above foreach ($results as $result) {

-----
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/model/catalog/product.php

Add this before last } line

public function getProductNextPrevProducts($productId, $categoryId){
      $sql = "SELECT * FROM " . $this->db->table("products_to_categories") . " WHERE `category_id` = $categoryId and product_id in ( select product_id from " . $this->db->table("products") . " where STATUS = 1)";
      $query = $this->db->query($sql);
      $product_data =  $query->rows;
      $nextPrevProduct = array();
      if(count($product_data) > 0){
         foreach($product_data as $k => $v){
            if($v['product_id'] == $productId){
               $preProductId = isset($product_data[$k - 1]['product_id']) ? $product_data[$k - 1]['product_id'] : 0;
               $nextProductId = isset($product_data[$k + 1]['product_id']) ? $product_data[$k + 1]['product_id'] : 0;
               $cateSql = "SELECT keyword FROM `url_aliases` WHERE `query` LIKE 'category_id=$categoryId'";
               $cateSqlQuery = $this->db->query($cateSql);
               $cateURL =  count($cateSqlQuery->rows) > 0 ? $cateSqlQuery->row['keyword']: '';
               
               $prevProductSql = "SELECT keyword FROM `url_aliases` WHERE `query` LIKE 'product_id=$preProductId'";
               $prevProductSqlQuery = $this->db->query($prevProductSql);
                 $prevProductURL =  count($prevProductSqlQuery->rows) > 0 ? $prevProductSqlQuery->row['keyword']: '';
               
               $nextProductSql = "SELECT keyword FROM `url_aliases` WHERE `query` LIKE 'product_id=$nextProductId'";
               $nextProductSqlQuery = $this->db->query($nextProductSql);
               $nextProductURL =  count($nextProductSqlQuery->rows) > 0 ? $nextProductSqlQuery->row['keyword']: '';
               
               $nextPrevProduct['prev_product'] = (trim($prevProductURL) != '') ? $cateURL . "/" . $prevProductURL : '';
               $nextPrevProduct['next_product'] = (trim($nextProductURL) != '') ? $cateURL . "/" . $nextProductURL : '';
            }
         }
      }
      return $nextPrevProduct;
   }

And last go to product.tpl and add this code where ever you want buttons and style it the way you want.

https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/pages/product/product.tpl#L268

<?php if(is_array($nextPrevProducts)){ ?>   
<div>
   <div style="float: left">
      <?php if(trim($nextPrevProducts['prev_product']) != '') {?>
         <a href="<?php echo trim($nextPrevProducts['prev_product']); ?>" > Previous Product </a>
      <?php } ?>
   </div>
   <div style="float: right">
      <?php if(trim($nextPrevProducts['next_product']) != '') {?>
         <a href="<?php echo trim($nextPrevProducts['next_product']); ?>" > Next Product </a>
      <?php } ?>
   </div>
</div>
<?php } ?>

You can contact AbanteCart developers (they have paid service abantecart.com/contact-us) or some other developers https://www.fiverr.com/nattoben This developer has made few extension for AbanteCart he might be able to help you https://marketplace.abantecart.com/index.php?rt=product/vendor&v=40 

P.S I am not promoting anyone here just trying to help you as what you want is not an easy thing. It needs some custom development



Nice work and Thanks you so much   :) :) :) :) :)
                           i am just try your code today in my local server but its show me some error.i am just put your code for new install abantecart in localhost and add your above code in it.
 /storefront/controller/pages/product/product.php#L750

$results = $this->model_catalog_product->getProductTags($product_id);
      /* Sam_78*/
      if(isset($category_info) && count($category_info) > 0){
         $nextPrevProducts =  $this->model_catalog_product->getProductNextPrevProducts($product_id, $category_info['category_id']);
         $this->data['nextPrevProducts'] = $nextPrevProducts;
      }
      /* Sam_78*/
storefront/model/catalog/product.php
    this code also add after add this code it's start error to show i was put code as after
public function hasTrackOptions{} function is end and also add last line before } this.
i am attach image of error to show.


thanks you so much  :) :) :) :)

19
Support / Re: Why localhost redirect me on live project
« on: August 16, 2019, 03:14:52 AM »
thanks   :) :) :)

website home page is work properly but when click on link it's get me my www/index.php file

http://localhost/1intlwebsite/ work fine
but click on button url path is http://localhost/1intlwebsite/category
but it's show me the index page of my local host server also done seo url is on in admin site.

i didn't get why my website admin panel work fine but store front not work properly  :) :)

20
Development Help Needed / Re: Create next preview button
« on: August 15, 2019, 01:40:46 AM »
Not tried
i need to get local install my website but some error on it. so after that i will try code and inform you thanks  :)

21
Support / Re: Why localhost redirect me on live project
« on: August 14, 2019, 03:10:47 AM »
Thanks

                what kind need to change in .htaccess i see all file there is no hart core write my website "URL".

22
Support / Why localhost redirect me on live project
« on: August 14, 2019, 12:31:42 AM »
Hello Sir  :)
            Nice to use abantecart. i am just download my full project using ftp to setup localhost.My home page is run but after i was click any links it's redirect me to my live project.
Also abantecart admin (back-end) login and work complete.
my front-end website link redirect me to live project.
i need any other file to change.  :)


 i was also change system>config.php

define('SERVER_NAME', 'localhost');
// Admin Section Configuration. You can change this value to any name. Will use ?s=name to access the admin
define('ADMIN_PATH', 'admin');

// Database Configuration
define('DB_DRIVER', 'amysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'database-name');
define('DB_PREFIX', 'abul_');



23
General Support / Re: Display none image in menu
« on: August 14, 2019, 12:17:48 AM »
Thanks  :) :) :)
to replay but i can't give media query there or i was change there line it's change in desktop view.And show me first image in desktop so i could change that.

24
Development Help Needed / Re: Create next preview button
« on: August 09, 2019, 01:05:56 AM »
 Thanks  :)
 Could you tell me which code change?
 or create code for me i ready for pay to change or create code for me?

25
Development Help Needed / Re: Create next preview button
« on: August 08, 2019, 11:51:02 AM »
 :) :) ok you need to put this code in file best of luck
storefront\view\default\template\common\header.tpl

26
Development Help Needed / Re: Create next preview button
« on: August 08, 2019, 06:09:47 AM »
you need code of html code?  :) :) :) :)
Or
You short out my problem ?  :( >:( >:(
Or
help me to solve my problem?


Hear is code
<div class="carousel-inner">
                <div class="item active">
                    <div class="carousel-content">
                        <div class="header-carousel-style1">
                            <p>Welcome to 1 International, inc.</p>
                  </div>
                    </div>
                </div>
                <div class="item">
                    <div class="carousel-content">
                        <div class="header-carousel-style1">
                            <p>Subscribe and Save 10% off your first Order.</p>
                        </div>
                    </div>
                </div>
                <div class="item">
                    <div class="carousel-content">
                        <div class="header-carousel-style1">                         
                            <p>Connect with us on Whatsapp and Email for latest Catalogues.</p>
                        </div>
                    </div>
                </div>
 :) :) :) :) :) :) :) :) :) :)

27
Development Help Needed / Re: Create next preview button
« on: August 08, 2019, 03:29:26 AM »
Thanks  :)
You can see it my live website

http://1intl.com/category

28
Development Help Needed / Re: Create next preview button
« on: August 08, 2019, 01:41:34 AM »
AbanteCart v1.2.13

29
Development Help Needed / Re: Create next preview button
« on: August 08, 2019, 12:27:09 AM »
i am use default template theme to change.

30
Development Help Needed / Re: Create next preview button
« on: August 07, 2019, 12:30:33 AM »
 :) :) Thanks  :) :) for replay but i need to change products not product images.

Url:- http://1intl.com/10111
Above page you can see product 10111-1,10111-2 and more
Now if i select product 10111-1

Url:- http://1intl.com/10111/10111-1
I gone above page hear i need next preview button on next button click it's show next product 10111-2 , 10111-3.

Pages: 1 [2] 3 4 ... 6

Powered by SMFPacks Social Login Mod