Post by willisfdoc » Sun Dec 31, 2017 2:14 am

A bar appears at the top for the View Cart page in my Open Cart 3.0.2.0 in both the default theme and in Journal. The bar contains the following text: Use Gift Certificate (5.00oz). The weight can differ. The text in the bar doesn't link to anything or have a text field for entering a Gift Certificate code. It also needlessly duplicates the real Use Gift Certificate text field lower on the page. This bar doesn't appear in the documentation illustration of the View Cart page. What is the point of the bar and how can it be deleted?

Newbie

Posts

Joined
Sat Jul 22, 2017 8:08 am

Post by straightlight » Sun Dec 31, 2017 2:38 am

Any screenshot with the Opencart route or URL you could provide based on your inquiry above?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by willisfdoc » Sun Dec 31, 2017 2:50 am

Here is a screenshot of the View Cart page for with the default theme. There was no additional programming that I know of for this site. I circled the mysterious bar on the screenshot. It also appears in my stores with the Journal theme.

Thanks for your help

Attachments

View Cart.jpg

View Cart.jpg (164.54 KiB) Viewed 580 times


Newbie

Posts

Joined
Sat Jul 22, 2017 8:08 am

Post by straightlight » Sun Dec 31, 2017 4:09 am

I am not entirely sure on why you're asking here but it looks like you're attempting to remove the Use Gift Certificate message where it's being highlighted on your screenshot?

If so, in your catalog/view/theme/<your_theme>/template/checkout/cart.twig file,

remove:

Code: Select all

{% for voucher in vouchers %}
            <tr>
              <td></td>
              <td class="text-left">{{ voucher.description }}</td>
              <td class="text-left"></td>
              <td class="text-left"><div class="input-group btn-block" style="max-width: 200px;">
                  <input type="text" name="" value="1" size="1" disabled="disabled" class="form-control" />
                  <div class="input-group-btn">
                  <button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="voucher.remove('{{ voucher.key }}');"><i class="fa fa-times-circle"></i></button>
                  </div></div></td>
              <td class="text-right">{{ voucher.amount }}</td>
              <td class="text-right">{{ voucher.amount }}</td>
            </tr>
            {% endfor %}

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by willisfdoc » Sun Dec 31, 2017 4:40 am

Great, thanks. Will removing this code affect the actual functioning Use Gift Certificate dropdown just below the Estimate Shipping and Taxes dropdown?

Newbie

Posts

Joined
Sat Jul 22, 2017 8:08 am

Post by straightlight » Sun Dec 31, 2017 4:43 am

willisfdoc wrote:
Sun Dec 31, 2017 4:40 am
Great, thanks. Will removing this code affect the actual functioning Use Gift Certificate dropdown just below the Estimate Shipping and Taxes dropdown?
Try before you buy.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 2 guests