Post by GastonHernandez » Thu Apr 07, 2016 2:07 pm

Hello everyone, I am new to this community, come here because I need your help ..
This is my website: www.taiyoviajes.tur.ar

What I do, it is that the Buy button, do not add the item to the cart, but they will send a link to the product MercadoPago for the user to buy through there.
The point is that for this, I have to make when creating the product or ride in this case, there is a specific field is "Link MercadoPago" because each product will have its specific link, and the function button buy would take that link and redirect you.
The problem is I do not know how to do this, and so was playing but I can not get it to work ..

And as an additional problem (which I think is solved easily but because the head does not give me more) is that part of upcoming trips in the Home where below are the products / trips, was the price and under the "tax "what I want is to change the tax for the stock, that is to say the tax envez to say whether in stock or not.

Of course, thank you very much for your help.
I hope prompt response because it is extremely urgent that and I need to start working with my company
Regards!!!


Posts

Joined
Mon Apr 04, 2016 12:56 pm

Post by GastonHernandez » Thu Apr 07, 2016 2:09 pm

I leave the current code attached my
catalog/view/theme/default/template/module/featured.tpl

Code: Select all

<h3 class="module-title"><span><?php echo $heading_title; ?></span></h3>
<div class="row">
    <?php foreach ($products as $product) { ?>
    <div class="product-layout col-lg-3 col-md-3 col-sm-6 col-xs-12">
        <div class="product-thumb transition">
            <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
            <div class="caption">
                <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
                <p><?php echo $product['description']; ?></p>
                <?php if ($product['rating']) { ?>
                <div class="rating">
                    <?php for ($i = 1; $i <= 5; $i++) { ?>
                    <?php if ($product['rating'] < $i) { ?>
                    <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
                    <?php } else { ?>
                    <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
                    <?php } ?>
                    <?php } ?>
                </div>
                <?php } ?>
                <?php if ($product['price']) { ?>
                <p class="price">
                    <?php if (!$product['special']) { ?>
                    <?php echo $product['price']; ?>
                    <?php } else { ?>
                    <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
                    <?php } ?>

                    <li><?php echo $text_tax; ?> <span class="stock-status"><?php echo $product['stock']; ?></span></li>
                </p>
                <?php } ?>
            </div>
            <div class="button-group">
                <button type="button" onclick="javascript:window.location.href='<?php echo $product['model']; ?>'"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
                <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>
                <button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>
            </div>
        </div>
    </div>
    <?php } ?>
</div>
And attached my public_html / admin / view / template / catalog / product_form.tpl
I do not know where I touched by mistake, and stopped loading images work for me ???


Posts

Joined
Mon Apr 04, 2016 12:56 pm
Who is online

Users browsing this forum: No registered users and 7 guests