In catalog/view/theme/YOUR_THEME/template/product/product.twig find
These are the three "col-sm-12" to change.
For the captcha you need to goto catalog/view/theme/YOUR_THEME/template/extension/captcha/ WHATEVER CAPTCHA FILE YOU ARE USING (normally basic.twig and look for
change these values to suit
Code: Select all
<div class="tab-pane" id="tab-review">
<form class="form-horizontal" id="form-review">
<div id="review"></div>
<h2>{{ text_write }}</h2>
{% if review_guest %}
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-name">{{ entry_name }}</label>
<input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-review">{{ entry_review }}</label>
<textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
<div class="help-block">{{ text_note }}</div>
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label">{{ entry_rating }}</label>
{{ entry_bad }}
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
{{ entry_good }}</div>
</div>
For the captcha you need to goto catalog/view/theme/YOUR_THEME/template/extension/captcha/ WHATEVER CAPTCHA FILE YOU ARE USING (normally basic.twig and look for
Code: Select all
<div class="col-sm-10">
Hello
Thanks for your help. Now it works.
I still have a problem.
How can I reduce the size of my comment?
And the Continue button is too far away how can I move it?
Thank you
Thanks for your help. Now it works.
I still have a problem.
How can I reduce the size of my comment?
And the Continue button is too far away how can I move it?
Thank you
Attachments
Review 3.jpg (67.61 KiB) Viewed 850 times
Well if you wanted to reduce the size of all of the boxes you should have said, it would have been easier.
Remove all previous edits from product.twig.
Now in the same file find
Replace with
Now we have just wrapped the whole element in a sized div
You can change the <div class="col-sm-9"> with whatever suits
Remove all previous edits from product.twig.
Now in the same file find
Code: Select all
<div class="tab-pane" id="tab-review">
<form class="form-horizontal" id="form-review">
<div id="review"></div>
<h2>{{ text_write }}</h2>
{% if review_guest %}
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-name">{{ entry_name }}</label>
<input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-review">{{ entry_review }}</label>
<textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
<div class="help-block">{{ text_note }}</div>
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label">{{ entry_rating }}</label>
{{ entry_bad }}
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
{{ entry_good }}</div>
</div>
{{ captcha }}
<div class="buttons clearfix">
<div class="pull-right">
<button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>
</div>
</div>
{% else %}
{{ text_login }}
{% endif %}
</form>
</div>
Code: Select all
<div class="col-sm-9">
<div class="tab-pane" id="tab-review">
<form class="form-horizontal" id="form-review">
<div id="review"></div>
<h2>{{ text_write }}</h2>
{% if review_guest %}
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-name">{{ entry_name }}</label>
<input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-review">{{ entry_review }}</label>
<textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
<div class="help-block">{{ text_note }}</div>
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label">{{ entry_rating }}</label>
{{ entry_bad }}
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
{{ entry_good }}</div>
</div>
{{ captcha }}
<div class="buttons clearfix">
<div class="pull-right">
<button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>
</div>
</div>
{% else %}
{{ text_login }}
{% endif %}
</form>
</div>
</div>
You can change the <div class="col-sm-9"> with whatever suits
Hello
After I modified, the following error occurred
I do not know what to change
Thank you
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected end of template in "oc-light/template/product/product.twig" at line 637.' in C:\xampp\htdocs\opencart\system\library\template\Twig\TokenStream.php:59 Stack trace: #0 C:\xampp\htdocs\opencart\system\library\template\Twig\TokenParser\If.php(40): Twig_TokenStream->next() #1 C:\xampp\htdocs\opencart\system\library\template\Twig\Parser.php(187): Twig_TokenParser_If->parse(Object(Twig_Token)) #2 C:\xampp\htdocs\opencart\system\library\template\Twig\Parser.php(100): Twig_Parser->subparse(NULL, false) #3 C:\xampp\htdocs\opencart\system\library\template\Twig\Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream)) #4 C:\xampp\htdocs\opencart\system\library\template\Twig\Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream)) #5 C:\xampp\htdocs\opencart\system\library\template\Twig\Environment.php(396): Twig_Environment->compileSource('{{ header }}\n<d...', 'oc-light/templa...') #6 C:\xampp\htdocs\opencart\system\storage\modificat in C:\xampp\htdocs\opencart\system\library\template\Twig\TokenStream.php on line 59
After I modified, the following error occurred
I do not know what to change
Thank you
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected end of template in "oc-light/template/product/product.twig" at line 637.' in C:\xampp\htdocs\opencart\system\library\template\Twig\TokenStream.php:59 Stack trace: #0 C:\xampp\htdocs\opencart\system\library\template\Twig\TokenParser\If.php(40): Twig_TokenStream->next() #1 C:\xampp\htdocs\opencart\system\library\template\Twig\Parser.php(187): Twig_TokenParser_If->parse(Object(Twig_Token)) #2 C:\xampp\htdocs\opencart\system\library\template\Twig\Parser.php(100): Twig_Parser->subparse(NULL, false) #3 C:\xampp\htdocs\opencart\system\library\template\Twig\Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream)) #4 C:\xampp\htdocs\opencart\system\library\template\Twig\Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream)) #5 C:\xampp\htdocs\opencart\system\library\template\Twig\Environment.php(396): Twig_Environment->compileSource('{{ header }}\n<d...', 'oc-light/templa...') #6 C:\xampp\htdocs\opencart\system\storage\modificat in C:\xampp\htdocs\opencart\system\library\template\Twig\TokenStream.php on line 59
Sorry my bad try this....find in same file
And replace with
Code: Select all
<div class="tab-pane" id="tab-review">
<form class="form-horizontal" id="form-review">
<div id="review"></div>
<h2>{{ text_write }}</h2>
{% if review_guest %}
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-name">{{ entry_name }}</label>
<input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-review">{{ entry_review }}</label>
<textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
<div class="help-block">{{ text_note }}</div>
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label">{{ entry_rating }}</label>
{{ entry_bad }}
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
{{ entry_good }}</div>
</div>
{{ captcha }}
<div class="buttons clearfix">
<div class="pull-right">
<button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>
</div>
</div>
{% else %}
{{ text_login }}
{% endif %}
</form>
</div>
Code: Select all
<div class="tab-pane" id="tab-review">
<div class="col-sm-9">
<form class="form-horizontal" id="form-review">
<div id="review"></div>
<h2>{{ text_write }}</h2>
{% if review_guest %}
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-name">{{ entry_name }}</label>
<input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-review">{{ entry_review }}</label>
<textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
<div class="help-block">{{ text_note }}</div>
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label">{{ entry_rating }}</label>
{{ entry_bad }}
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
{{ entry_good }}</div>
</div>
{{ captcha }}
<div class="buttons clearfix">
<div class="pull-right">
<button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>
</div>
</div>
</div>
{% else %}
{{ text_login }}
{% endif %}
</form>
</div>
Hello
If I copy all the code it does not work
I just picked up the lines that I saw modified and I added the code
Now it works but it has Related products.
What else do I have to do?
Thank you
If I copy all the code it does not work
I just picked up the lines that I saw modified and I added the code
Now it works but it has Related products.
What else do I have to do?
Thank you
Attachments
Related products.jpg (48.24 KiB) Viewed 758 times
Right now i have found out you are using a different theme remove all previous edits i suggested then....
In your product.twig find
Add directly underneath
Then find
Add directly above
In your product.twig find
Code: Select all
<div class="tab-pane" id="tab-review">
Code: Select all
<div class="row">
<div class="col-sm-6">
Code: Select all
{% else %}
{{ text_login }}
{% endif %}
Code: Select all
</div>
</div>
Hello
This is my code product.twig
We did not find the following code line
<div class="tab-pane" id="tab-review">
Thank you
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-description" data-toggle="tab">{{ tab_description }}</a></li>
{% if attribute_groups %}
<li><a href="#tab-specification" data-toggle="tab">{{ tab_attribute }}</a></li>
{% endif %}
{% if review_status %}
<li><a href="#tab-review" data-toggle="tab">{{ tab_review }}</a></li>
{% endif %}
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab-description">{{ description }}</div>
{% if attribute_groups %}
<div class="tab-pane" id="tab-specification">
<table class="table table-bordered">
{% for attribute_group in attribute_groups %}
<thead>
<tr>
<td colspan="2"><strong>{{ attribute_group.name }}</strong></td>
</tr>
</thead>
<tbody>
{% for attribute in attribute_group.attribute %}
<tr>
<td>{{ attribute.name }}</td>
<td>{{ attribute.text }}</td>
</tr>
{% endfor %}
</tbody>
{% endfor %}
</table>
</div>
{% endif %}
{% if review_status %}
<form class="form-horizontal" id="form-review">
<div id="review"></div>
<h2>{{ text_write }}</h2>
{% if review_guest %}
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-name">{{ entry_name }}</label>
<input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-review">{{ entry_review }}</label>
<textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
<div class="help-block">{{ text_note }}</div>
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label">{{ entry_rating }}</label>
{{ entry_bad }}
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
{{ entry_good }}</div>
</div>
{{ captcha }}
<div class="buttons clearfix">
<div class="pull-right">
<button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>
</div>
</div>
{% else %}
{{ text_login }}
{% endif %}
</form>
</div>
{% endif %}</div>
This is my code product.twig
We did not find the following code line
<div class="tab-pane" id="tab-review">
Thank you
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-description" data-toggle="tab">{{ tab_description }}</a></li>
{% if attribute_groups %}
<li><a href="#tab-specification" data-toggle="tab">{{ tab_attribute }}</a></li>
{% endif %}
{% if review_status %}
<li><a href="#tab-review" data-toggle="tab">{{ tab_review }}</a></li>
{% endif %}
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab-description">{{ description }}</div>
{% if attribute_groups %}
<div class="tab-pane" id="tab-specification">
<table class="table table-bordered">
{% for attribute_group in attribute_groups %}
<thead>
<tr>
<td colspan="2"><strong>{{ attribute_group.name }}</strong></td>
</tr>
</thead>
<tbody>
{% for attribute in attribute_group.attribute %}
<tr>
<td>{{ attribute.name }}</td>
<td>{{ attribute.text }}</td>
</tr>
{% endfor %}
</tbody>
{% endfor %}
</table>
</div>
{% endif %}
{% if review_status %}
<form class="form-horizontal" id="form-review">
<div id="review"></div>
<h2>{{ text_write }}</h2>
{% if review_guest %}
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-name">{{ entry_name }}</label>
<input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-review">{{ entry_review }}</label>
<textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
<div class="help-block">{{ text_note }}</div>
</div>
</div>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label">{{ entry_rating }}</label>
{{ entry_bad }}
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
{{ entry_good }}</div>
</div>
{{ captcha }}
<div class="buttons clearfix">
<div class="pull-right">
<button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>
</div>
</div>
{% else %}
{{ text_login }}
{% endif %}
</form>
</div>
{% endif %}</div>
We did not find the following code line
<div class="tab-pane" id="tab-review">
Code: Select all
{% if review_status %}
<div class="tab-pane" id="tab-review">
<form class="form-horizontal" id="form-review">
<div id="review"></div>
Code: Select all
<div class="tab-pane fade" id="tab-review" role="tabpanel" aria-labelledby="review-tab">
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 322 guests